]> git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/config_startup_program_replay.rb
more lean and mean, switching still doesn't work... :-(
[fnordlicht-mini] / firmware / tests / config_startup_program_replay.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 puts "sending sync sequence"
13 sync()
14
15 puts "configure startup: program replay 3-5 (repeat reverse)"
16 config_startup_program(255, 2, [3, 5, 2])
Impressum, Datenschutz