Skip to content
/ ws2801 Public

A Ruby gem for the ws2801 chip (used in RGB Pixel Stripes/Pixel)

Notifications You must be signed in to change notification settings

b1nary/ws2801

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Ruby gem for the ws2801 chip (used in RGB Pixel Stripes/Pixel)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages