]> git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/start_program_colorwheel.rb
import original fnordlichtmini firmware
[fnordlicht-mini] / firmware / tests / start_program_colorwheel.rb
1 #!/usr/bin/env ruby
2
3 $:.unshift(File.dirname(__FILE__)+"/lib")
4
5 require 'fnordlicht'
6 require 'serialport'
7
8 include Fnordlicht
9
10 $dev = SerialPort.new("/dev/ttyUSB0", 19200)
11
12 puts "sending sync sequence"
13 sync()
14 puts "stop fading"
15 stop(255)
16
17 puts "start program colorwheel (forward)"
18 start_program(255, 0, [5, 1, 1, 0, 0, 60, 0, 255, 255, 255])
19 sleep 10
20
21 puts "start program colorwheel (reverse)"
22 start_program(255, 0, [5, 1, 1, 0, 0, 60, 0, 1, 255, 255])
Impressum, Datenschutz