diff options
author | Jenna Fox <a@creativepony.com> | 2012-09-27 09:59:22 +1000 |
---|---|---|
committer | Jenna Fox <a@creativepony.com> | 2012-09-27 09:59:22 +1000 |
commit | 1f0e378875f6e24a1003c284017c000003853aaa (patch) | |
tree | d71f8df8ab6545891062021899afb1b3d388cd1a /firmware/upload.rb | |
parent | 97b381f5d755080539776e59ba5e6887092cad41 (diff) | |
download | micronucleus-1f0e378875f6e24a1003c284017c000003853aaa.tar.gz micronucleus-1f0e378875f6e24a1003c284017c000003853aaa.tar.bz2 micronucleus-1f0e378875f6e24a1003c284017c000003853aaa.zip |
Reflect name change to micronucleus in readme and ruby scripts
Diffstat (limited to 'firmware/upload.rb')
-rw-r--r-- | firmware/upload.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/upload.rb b/firmware/upload.rb index b2537d8..32aefa9 100644 --- a/firmware/upload.rb +++ b/firmware/upload.rb @@ -1,4 +1,4 @@ -require_relative './microboot' +require_relative './micronucleus' if ARGV[0] if ARGV[0].end_with? '.hex' @@ -15,19 +15,19 @@ end #test_data += ("\xFF" * 64) puts "Plug in programmable device now: (waiting)" -sleep 0.25 while MicroBoot.all.length == 0 +sleep 0.25 while Micronucleus.all.length == 0 -ubootable = MicroBoot.all.first -puts "Attached to device: #{ubootable.inspect}" +nucleus = Micronucleus.all.first +puts "Attached to device: #{nucleus.inspect}" #puts "Attempting to write '#{test_data.inspect}' to first thinklet's program memory" #puts "Bytes: #{test_data.bytes.to_a.inspect}" sleep(0.25) # some time to think? puts "Attempting to write supplied program in to device's memory" -ubootable.program = test_data +nucleus.program = test_data puts "Great! Starting program..." -ubootable.finished # let thinklet know it can go do other things now if it likes +nucleus.finished # let thinklet know it can go do other things now if it likes puts "All done!" |