]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/fade_rgb.rb
3 $
:.unshift(File
.dirname(__FILE__
)+"/lib")
10 $dev = SerialPort
.new("/dev/ttyUSB0", 19200)
12 puts
"sending sync sequence"
17 puts
"fade to rgb color"
18 fade_rgb(255, 0, 0, 0, 255, 1)
19 fade_rgb(255, 255, 0, 0, 2, 1)
21 fade_rgb(255, 0, 255, 0, 2, 1)
23 fade_rgb(255, 0, 0, 255, 2, 1)