]> git.zerfleddert.de Git - fnordlicht-mini/blame - firmware/tests/save_rgb.rb
more lean and mean, switching still doesn't work... :-(
[fnordlicht-mini] / firmware / tests / save_rgb.rb
CommitLineData
ec1bef8e 1#!/usr/bin/env ruby
2
3$:.unshift(File.dirname(__FILE__)+"/lib")
4
5require 'fnordlicht'
6require 'serialport'
7
8include Fnordlicht
9
10$dev = SerialPort.new("/dev/ttyUSB0", 19200)
11
12puts "sending sync sequence"
13sync()
14
15puts "save rgb: light orange (fast fading)"
16save_rgb(255, 0, 255, 150, 0, 10, 1, 10);
Impressum, Datenschutz