]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/start_program_replay.rb
3 $
:.unshift(File
.dirname(__FILE__
)+"/lib")
10 $dev = SerialPort
.new("/dev/ttyUSB0", 19200)
12 puts
"sending sync sequence"
17 puts
"save 11 random hue values (hsv) in eeprom"
21 save_hsv(255, i
, hue
, 255, 255, 10, 1, 10);
26 fade_hsv(255, 240, 255, 255, 10, 1)
30 puts
"start program replay, 3-7 no repeat"
31 start_program(255, 2, [3, 7, 0])
35 puts
"start program replay, 5-7 repeat from start"
36 start_program(255, 2, [5, 7, 1])
40 puts
"start program replay, 5-7 repeat inverse"
41 start_program(255, 2, [5, 7, 2])