]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/offset_delay.rb
3 $
:.unshift(File
.dirname(__FILE__
)+"/lib")
10 $dev = SerialPort
.new("/dev/ttyUSB0", 19200)
12 puts
"sending sync sequence"
16 fade_rgb(255, 0, 0, 0, 255, 0)
18 config_offsets(255, 0, 0, 0, 255, 255)
20 puts
"fade slow rgb (big steps)"
21 fade_updown_rgb(255, 255, 255, 0, 10, 10, 3)
23 puts
"fade slow hsv (big steps)"
24 fade_updown_hsv(255, 120, 255, 255, 10, 10, 3)
26 puts
"configuring delay offset"
27 config_offsets(255, 0, -5, 0, 255, 255)
29 puts
"fade slow rgb (big steps, but modified to fast)"
30 fade_updown_rgb(255, 255, 255, 0, 10, 10, 1)
32 puts
"fade slow hsv (big steps, but modified to fast)"
33 fade_updown_hsv(255, 120, 255, 255, 10, 10, 1)