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