Let the on board RGB led run thru the color circle
Test program for LPC 1549 and LPC 812 board. It use the on board RGB led to scroll thru the colors.
Diff: main.cpp
- Revision:
- 1:c92fa914546d
- Parent:
- 0:5a281c0ca6ae
--- a/main.cpp Sat Oct 17 16:23:22 2015 +0000 +++ b/main.cpp Sat Oct 17 16:47:09 2015 +0000 @@ -2,9 +2,9 @@ /* the led's are connected to vcc, so a PwmOut of 100% will shut off the led and 0% will let it shine ! */ -PwmOut r (LED1); -PwmOut g (LED2); -PwmOut b (LED3); +PwmOut r (LED_RED); +PwmOut g (LED_GREEN); +PwmOut b (LED_BLUE); // function to convert hue , saturation and value to RGB // see http://en.wikipedia.org/wiki/HSL_and_HSV