A Ruby gem for the ws2801 chip (used in RGB Pixel Stripes/Pixel)
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README.md
Rakefile
ws2801-1.1.0.gem
ws2801.gemspec

README.md

ws2801 gem

Controlling LED Stripes/Pixel with ws2801 chips from Ruby on Raspberry PI or similar


Reference


Installation

Install directly from Rubygems

gem install ws2801

Basic Usage

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

Full Documentation


Changelog

  • 1.1.0 Include WS2801::Effects, fix fading
  • 1.0.2 Include fading
  • 1.0 Calling Stable
  • 0.2 Refactoring
  • 0.1.2 Release