]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/offset_hsv.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_hsv(255, 240, 255, 255, 10, 1, 1)
23 puts
"configuring saturation scale"
24 config_offsets(255, 10, 0, 0, 100, 255)
26 puts
"fade to blue (modified to light blue)"
27 fade_updown_hsv(255, 240, 255, 255, 10, 1, 1)
30 config_offsets(255, 0, 0, 0, 255, 255)
33 fade_updown_hsv(255, 240, 255, 255, 10, 1, 1)
35 puts
"configuring value scale"
36 config_offsets(255, 10, 0, 0, 255, 100)
38 puts
"fade to blue (modified to blue, low intensity)"
39 fade_updown_hsv(255, 240, 255, 255, 10, 1, 1)
42 config_offsets(255, 0, 0, 0, 255, 255)
45 fade_updown_hsv(255, 240, 255, 255, 10, 1, 1)
47 puts
"configuring hue offset"
48 config_offsets(255, 10, 0, 80, 255, 255)
50 puts
"fade to blue (modified to pink)"
51 fade_updown_hsv(255, 240, 255, 255, 10, 1, 1)
53 puts
"configuring negative hue offset"
54 config_offsets(255, 10, 0, -80, 255, 255)
56 puts
"fade to blue (modified to light green)"
57 fade_updown_hsv(255, 240, 255, 255, 10, 1, 1)