Grove Chainable LED example application for ON Semiconductor NCS36510
Dependencies: ChainableLED mbed-os
Fork of mbed-Chainable-LED-example-NCS36510 by
main.cpp
- Committer:
- jacobjohnson
- Date:
- 2017-01-25
- Revision:
- 1:0fae072e9cbe
- Parent:
- 0:48db693b0f9e
File content as of revision 1:0fae072e9cbe:
#include "mbed.h" #include "ChainableLED.h" // ChainableLED(clk, data, number_of_leds) ChainableLED color_led(D0, D1, 1); int main() { uint8_t value = 0; while(1) { value++; // ChainableLED.setColorRGB(index_of_led, red, green, blue) color_led.setColorRGB(0, value, 255 - value, value + 80); wait_ms(10); } }