Simple mashup to control a WS2811/WS2812B led strip connected to a Spark Core through your browser.
If you have the spark-cli tool installed :
- Open
spark_src/spark-xmas-pixels.ino
and change thePIXEL_COUNT
and theCONVERT_AT
values. spark flash DEVICE_ID spark_src
(replaceDEVICE_ID
with your core device id)
If instead you want to use the Spark WEB IDE :
- Open
spark_src/spark-xmas-pixels.ino
and change thePIXEL_COUNT
and theCONVERT_AT
values. - Copy the
spark_src/spark-xmas-pixels.ino
file into the Spark IDE as a new app. - Change
#include "neopixel.h"
to#include "neopixel/neopixel.h"
- Be sure to add the NeoPixel library for that app.
- Verify and flash to your core(s)
- Open
public/index.html
in a browser. - Press the Login button and log in to Particle.io
- The id of your Particle Core is fetched from Particle.io
- Play with the lights
### Ruby part
gem install bundler
bundle install
copy config.yml.example config.yml
edit config.yml and set your authentication_token and device_id(s)ruby server.rb
open up a browser and surf to http://localhost:4567/