Pixie is a wrapper for the ws2811 C library for driving ws281x LED strips.
Add this line to your application's Gemfile:
gem'pixie',git: 'https://github.com/ledbettj/pixie.git'And then execute:
$ bundle install
require'pixie'pixels=Pixie::Pixie.new(Pixie::WS2811_STRIP_RGB,50)colors=['red','green','blue']loopdopixels[0..49]=colorspixels.rendercolors=colors.rotatesleep(0.075)endBug reports and pull requests are welcome on GitHub at https://github.com/ledbettj/pixie.
The gem is available as open source under the terms of the MIT License.