Skip to content

Latest commit

 

History

History
executable file
·
61 lines (36 loc) · 1.32 KB

README.md

File metadata and controls

executable file
·
61 lines (36 loc) · 1.32 KB

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