Controlling LED Stripes/Pixel with ws2801 chips from Ruby on Raspberry PI or similar
- Used Pixels 12mm Diffused Digital RGB LED Pixels (other products, with same chipset should work fine too)
- Connected after the Adafruit Guide
- Developed in Ruby 1.9.3
- Links for this Gem: Rubygems, Rubydoc, Github
Install directly from Rubygems
gem install ws2801
Set all to green
WS2801.set :g => 255
Set first pixel to blue
WS2801.set :pixel => 0, :b => 255
Fade some pixel to red
WS2801.fade :pixel => [1,4,7,12,18], :r => 255
Set off
WS2801.off
Set first half to bright white
WS2801.set :pixel => (0..(WS2801.length/2)).to_a, :r => 255, :g => 255, :b => 255
Change length (default: 25)
WS2801.length 50
- 1.1.0 Include WS2801::Effects, fix fading
- 1.0.2 Include fading
- 1.0 Calling Stable
- 0.2 Refactoring
- 0.1.2 Release