Grove Chainable LED example application for ON Semiconductor NCS36510
Dependencies: ChainableLED mbed-os
Fork of mbed-Chainable-LED-example-NCS36510 by
main.cpp
00001 #include "mbed.h" 00002 #include "ChainableLED.h" 00003 00004 // ChainableLED(clk, data, number_of_leds) 00005 ChainableLED color_led(D0, D1, 1); 00006 00007 int main() { 00008 uint8_t value = 0; 00009 00010 while(1) { 00011 value++; 00012 // ChainableLED.setColorRGB(index_of_led, red, green, blue) 00013 color_led.setColorRGB(0, value, 255 - value, value + 80); 00014 wait_ms(10); 00015 } 00016 }
Generated on Sat Jul 30 2022 03:26:26 by
1.7.2
