]> git.zerfleddert.de Git - fnordlicht-mini/blame - firmware/tests/offset_delay.rb
reference firmware
[fnordlicht-mini] / firmware / tests / offset_delay.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()
14puts "stop fading"
15stop(255)
16fade_rgb(255, 0, 0, 0, 255, 0)
17puts "reset offsets "
18config_offsets(255, 0, 0, 0, 255, 255)
19
20puts "fade slow rgb (big steps)"
21fade_updown_rgb(255, 255, 255, 0, 10, 10, 3)
22
23puts "fade slow hsv (big steps)"
24fade_updown_hsv(255, 120, 255, 255, 10, 10, 3)
25
26puts "configuring delay offset"
27config_offsets(255, 0, -5, 0, 255, 255)
28
29puts "fade slow rgb (big steps, but modified to fast)"
30fade_updown_rgb(255, 255, 255, 0, 10, 10, 1)
31
32puts "fade slow hsv (big steps, but modified to fast)"
33fade_updown_hsv(255, 120, 255, 255, 10, 10, 1)
Impressum, Datenschutz