]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/save_current.rb
3 $
:.unshift(File
.dirname(__FILE__
)+"/lib")
10 $dev = SerialPort
.new("/dev/ttyUSB0", 19200)
12 puts
"sending sync sequence"
17 puts
"starting slow fade from red to green"
18 fade_rgb(255, 255, 0, 0, 255, 1)
21 puts
"save start color"
22 save_current(255, 0, 8, 1, 10)
24 fade_rgb(255, 0, 255, 0, 1, 2)
27 puts
"save in the middle"
28 save_current(255, 1, 8, 1, 10)
31 puts
"save at the end"
32 save_current(255, 2, 8, 1, 10)
36 puts
"start program replay, 0-2, repeat from start"
37 start_program(255, 2, [0, 2, 1])