![](/media/cache/profiles/fe04e05fbe48920b8ba90bea2ddfe60b.50x50_q85.jpg)
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.
Revision 1:c92fa914546d, committed 2015-10-17
- Comitter:
- dreschpe
- Date:
- Sat Oct 17 16:47:09 2015 +0000
- Parent:
- 0:5a281c0ca6ae
- Commit message:
- change RGB names. It will work for LPC812 and LPC 1549 board
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5a281c0ca6ae -r c92fa914546d main.cpp --- 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