BlinkM Smart LED Library for Spark Core
- BlinkM Vcc to 3.3V
- BlinkM GND to GND
- BlinkM SCL to D1 (with pullup resistor)
- BlinkM SDA to D0 (with pullup resistor)
Sample application is simple one to display a color and to blink. The application defines two Spark function setcolor and setblinking to set the color and start/stop blink the LED.
The Web Page displays a color picker to select color and a checkbox to strt/stop the blinking. Sepctrum is used for the Color Picker. Edit index.html and replace the tokens deviceid and access token with actual values.