]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/offset_step.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)
21 fade_updown_rgb(255, 255, 255, 0, 1, 1, 3)
24 fade_updown_hsv(255, 120, 255, 255, 1, 1, 3)
26 puts
"configuring positive step offset"
27 config_offsets(255, 10, 0, 0, 255, 255)
29 puts
"fade slow rgb (but modified to fast)"
30 fade_updown_rgb(255, 255, 255, 0, 1, 1, 1)
32 puts
"fade slow hsv (but modified to fast)"
33 fade_updown_hsv(255, 120, 255, 255, 1, 1, 1)
36 config_offsets(255, 0, 0, 0, 255, 255)
39 fade_updown_rgb(255, 255, 255, 0, 10, 1, 1)
42 fade_updown_hsv(255, 120, 255, 255, 10, 1, 1)
44 puts
"configuring negative step offset"
45 config_offsets(255, -10, 0, 0, 255, 255)
47 puts
"fade fast rgb (but modified to slow)"
48 fade_updown_rgb(255, 255, 255, 0, 10, 1, 3)
50 puts
"fade fast hsv (but modified to slow)"
51 fade_updown_hsv(255, 120, 255, 255, 10, 1, 3)