]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/change_current.rb
3 $
:.unshift(File
.dirname(__FILE__
)+"/lib")
10 $dev = SerialPort
.new("/dev/ttyUSB0", 19200)
12 puts
"sending sync sequence"
17 puts
"fade to hsv color"
18 fade_hsv(255, 200, 100, 100, 2, 1)
21 puts
"change current color - rgb"
22 modify_current(255, 1, 1, 50, 0, 0, 0, 0, 0)
24 modify_current(255, 1, 1, 50, 0, 0, 0, 0, 0)
26 modify_current(255, 1, 1, 50, 0, 0, 0, 0, 0)
28 modify_current(255, 1, 1, -80, 0, 0, 0, 0, 0)
30 modify_current(255, 1, 1, -100, 100, 127, 0, 0, 0)
33 puts
"change current color - hsv"
34 fade_hsv(255, 60, 220, 120, 5, 1)
37 modify_current(255, 2, 1, 0, 0, 0, 235, 0, 0)
39 modify_current(255, 2, 1, 0, 0, 0, 235, 0, 0)
41 modify_current(255, 2, 1, 0, 0, 0, 235, 0, 0)
43 modify_current(255, 2, 1, 0, 0, 0, 235, 0, 0)
46 modify_current(255, 5, 1, 0, 0, 0, 0, 0, -80)
48 modify_current(255, 5, 1, 0, 0, 0, 0, 0, 80)