]> git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/start_bootloader.rb
more lean and mean, switching still doesn't work... :-(
[fnordlicht-mini] / firmware / tests / start_bootloader.rb
1 #!/usr/bin/env ruby
2
3 $:.unshift(File.dirname(__FILE__)+"/lib")
4
5 require 'fnordlicht'
6 require 'serialport'
7
8 include Fnordlicht
9
10 $dev = SerialPort.new("/dev/ttyUSB0", 19200)
11
12 if ARGV.length != 1
13 $stderr.puts "USAGE: #{$0} <addr>"
14 exit 1
15 end
16
17 puts "sending sync sequence"
18 sync()
19
20 puts "starting bootloader"
21 start_bootloader(ARGV.shift.to_i)
Impressum, Datenschutz