]> git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/tests/save_rgb.rb
reference firmware
[fnordlicht-mini] / firmware / tests / save_rgb.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
15 puts "save rgb: light orange (fast fading)"
16 save_rgb(255, 0, 255, 150, 0, 10, 1, 10);
Impressum, Datenschutz