![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Basic control of an RGB LED
Diff: main.cpp
- Revision:
- 3:3411d8922bb1
- Parent:
- 2:c936f86e62fb
diff -r c936f86e62fb -r 3411d8922bb1 main.cpp --- a/main.cpp Wed Apr 20 07:28:00 2016 +0000 +++ b/main.cpp Wed Apr 20 08:37:57 2016 +0000 @@ -17,8 +17,8 @@ DigitalOut Blue(P0_19); /* Set the on and off states of the lights */ -int on = 0; -int off = 1; +const int on = 0; +const int off = 1; int main() {