avburn 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ avburn
2
+ ======
3
+
4
+ Simple Shoes GUI for AVRDUDE. Burn fuses/hexes.
5
+
6
+
7
+ Install
8
+ -------
9
+
10
+ gem install avburn
11
+
12
+
13
+ Use
14
+ ---
15
+
16
+ avburn
17
+
18
+
19
+ Requirements
20
+ ------------
21
+
22
+ * Shoes
23
+ * Avrdude
24
+
25
+
26
+ HexFiles
27
+ --------
28
+
29
+ Copy yr firmware to ~/.avb.hex/ in this format (optional):
30
+
31
+ name_mcu_freq.hex
32
+
33
+ Example:
34
+
35
+ cp compiled.hex ~/avb.hex/myproj_atmega328p_16mhz.hex
36
+
37
+
38
+ SS
39
+ --
40
+ ![SS](https://github.com/nofxx/avburn/raw/master/media/ss.png)
41
+
42
+
43
+ ToDo
44
+ ----
45
+
46
+ More devices on fuse.yml...
47
+ Your ideas...
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.1.0
data/bin/avburn CHANGED
@@ -1,5 +1,10 @@
1
1
  #!/usr/bin/env shoes
2
+ require 'rubygems'
2
3
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
+
5
+ # Distribute as rubygem
6
+ exec "shoes #{__FILE__}" unless Object.const_defined? "Shoes"
7
+
3
8
  require 'avburn'
4
9
  include Avburn
5
10
 
@@ -11,7 +16,6 @@ Shoes.app :title => "AVbuRn", :width => 980, :height => 730 do
11
16
  flow do
12
17
  background "#881010"
13
18
  # background_gradient(rgb(138, 10, 10), rgb(190,30,30))
14
- # image "gamefaqs-logo.gif"
15
19
  # title "AVRb", :margin_top => 30, :color => "#ffffff"
16
20
  stack :width => '90%' do
17
21
  banner "AVbuRn", :margin_left => 15, :margin_top => 17, :variant => 'smallcaps', :size => 'large', :stroke => "#fff", :weight => "bold"
@@ -49,19 +53,20 @@ Shoes.app :title => "AVbuRn", :width => 980, :height => 730 do
49
53
  @prog = list.text
50
54
  changed(list)
51
55
  end
52
- para " Platform: ", :weight => "bold"
56
+ para " Platform: ", :weight => "bold"
53
57
  @platform_list = list_box :items => Part.all, :text => "Select..", :width => 120, :choose => @platform ||= Conf[:platform] do |list|
54
58
  # @platform_list = list_box :items => [1,2], :width => 120 do |list|
55
59
  @platform = list.text
56
60
  changed(list)
57
61
  print_fuses()
58
62
  end
59
- para " Memory: ", :weight => "bold"
63
+ para " Memory: ", :weight => "bold"
60
64
  @memory_list = list_box :items => Memory, :width => 120, :choose => Conf[:memory] do |list|
61
65
  @memory = list.text
62
66
  changed(list)
63
67
  end
64
- para " "
68
+
69
+ image "../lib/avburn/img/down.png", :margin => 7
65
70
  button "Read" do
66
71
  run_comm "#{@memory}:r:#{@memory}:#{@format||'i'}"
67
72
  end
@@ -70,7 +75,6 @@ Shoes.app :title => "AVbuRn", :width => 980, :height => 730 do
70
75
  @config_dlg = dialog "Config", :width => 300, :height => 280 do
71
76
  flow do
72
77
  background "#881010"
73
- # image "gamefaqs-logo.gif"
74
78
  # title "AVRb", :margin_top => 30, :color => "#ffffff"
75
79
  stack :width => '100%' do
76
80
  banner "Config", :margin_left => 15, :margin_top => 20, :variant => 'smallcaps', :size => 'large', :stroke => "#fff", :weight => "bold"
@@ -137,9 +141,10 @@ Shoes.app :title => "AVbuRn", :width => 980, :height => 730 do
137
141
  end
138
142
 
139
143
  @hex = stack :margit_top => 15 do
140
- caption "HEX"
144
+ caption "Burn"
141
145
  flow do
142
- para " Hexfile: ", :weight => "bold"
146
+ image "../lib/avburn/img/hex.png", :margin => 7
147
+ para "Hexfile: ", :weight => "bold"
143
148
  @hex_list = list_box :items => Hex.all, :width => 420, :choose => Conf[:hex] do |list|
144
149
  @hexfile = list.text
145
150
  check_hex_enabled
@@ -148,8 +153,10 @@ Shoes.app :title => "AVbuRn", :width => 980, :height => 730 do
148
153
  @verify_btn = button("Verify", :state => "disabled") { run_hex_comm :v }
149
154
  para " "
150
155
  @burn_btn = button("Burn!", :state => "disabled") { run_hex_comm :w }
156
+ image "../lib/avburn/img/burn.png", :margin => 8
151
157
  end
152
158
 
159
+ caption "Dump"
153
160
  flow do
154
161
  para " Name: ", :weight => "bold"
155
162
  edit_line :width => 220 do |le|
@@ -174,20 +181,25 @@ Shoes.app :title => "AVbuRn", :width => 980, :height => 730 do
174
181
  @hex.hide
175
182
  # print_fuses
176
183
 
177
- stack(:margin_top => 20, :width => "100%", :height => 350, :scroll => true) do
184
+ stack(:margin_top => 20, :width => "100%", :height => 360, :scroll => true) do
178
185
  flow do
179
- caption "Log"
186
+ caption "Log "
180
187
  button("Clear") { @log.text = "" }
181
188
  end
182
189
  @log = para "", :family => "Inconsolata;monospace;monospaced"
183
190
  end
184
191
 
185
- flow(:width => "100%") do
186
- background "#777"
192
+ flow do
193
+ flow(:width => "5%", :margin => 10) do
194
+ @status = flow {}
187
195
 
188
- @footer = para "AVRburn v0.1"
189
- end
196
+ end
197
+ flow(:width => "-90%") do
198
+ background "#ccc"
190
199
 
200
+ @footer = para "AVRburn v0.1"
201
+ end
202
+ end
191
203
  end
192
204
 
193
205
  #
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/avburn.rb CHANGED
@@ -58,11 +58,19 @@ module Avburn
58
58
  yield
59
59
  end
60
60
  else
61
- Kernel.system "#{comm} &> output"
61
+ set_footer Kernel.system "#{comm} &> output"
62
62
  log File.read("output")
63
63
  end
64
64
  end
65
65
 
66
+ def set_footer bool
67
+ p "OUT #{bool}"
68
+ img = bool ? "tick" : "err"
69
+ @status.clear
70
+ @status.append { image("../lib/avburn/img/#{img}.png") }
71
+
72
+ end
73
+
66
74
 
67
75
  class << self
68
76
 
data/media/ss.png ADDED
Binary file
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 2
9
- version: 0.0.2
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marcos Piccinini
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-30 00:00:00 -02:00
17
+ date: 2010-12-31 00:00:00 -02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -83,19 +83,33 @@ executables:
83
83
  extensions: []
84
84
 
85
85
  extra_rdoc_files:
86
- - README.rdoc
86
+ - README.md
87
87
  files:
88
88
  - .document
89
89
  - .rspec
90
90
  - Gemfile
91
91
  - Gemfile.lock
92
- - README.rdoc
92
+ - README.md
93
93
  - Rakefile
94
94
  - VERSION
95
95
  - bin/avburn
96
96
  - bin/flash
97
97
  - lib/avburn.rb
98
98
  - lib/avburn/fuses.yml
99
+ - lib/avburn/img/burn.png
100
+ - lib/avburn/img/clock.png
101
+ - lib/avburn/img/down.png
102
+ - lib/avburn/img/err.png
103
+ - lib/avburn/img/hex.png
104
+ - lib/avburn/img/lightning.png
105
+ - lib/avburn/img/lock.png
106
+ - lib/avburn/img/lock_unlock.png
107
+ - lib/avburn/img/target.png
108
+ - lib/avburn/img/tick.png
109
+ - lib/avburn/img/up.png
110
+ - lib/avburn/img/warn.png
111
+ - lib/avburn/img/wrench.png
112
+ - media/ss.png
99
113
  - spec/avburn_spec.rb
100
114
  - spec/spec_helper.rb
101
115
  has_rdoc: true
@@ -112,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
126
  requirements:
113
127
  - - ">="
114
128
  - !ruby/object:Gem::Version
115
- hash: -2285582613984815413
129
+ hash: -2690657376769320966
116
130
  segments:
117
131
  - 0
118
132
  version: "0"
data/README.rdoc DELETED
@@ -1,50 +0,0 @@
1
- = avburn
2
-
3
- Simple Shoes GUI for AVRDUDE. Burn fuses/hexes.
4
-
5
-
6
- == Install
7
-
8
- gem install avburn
9
-
10
-
11
- == Use
12
-
13
-
14
- avburn
15
-
16
-
17
- == Requirements
18
-
19
-
20
- * Shoes
21
- * Avrdude
22
-
23
-
24
- == HexFiles
25
-
26
- Copy yr firmware to ~/.avb.hex/ in this format (optional):
27
-
28
- name_mcu_freq.hex
29
-
30
- Example:
31
-
32
- cp compiled.hex ~/avb.hex/myproj_atmega328p_16mhz.hex
33
-
34
-
35
-
36
- == Contributing to avburn
37
-
38
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
39
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
40
- * Fork the project
41
- * Start a feature/bugfix branch
42
- * Commit and push until you are happy with your contribution
43
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
44
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
45
-
46
- == Copyright
47
-
48
- Copyright (c) 2010 Marcos Piccinini. See LICENSE.txt for
49
- further details.
50
-