Rick Poppe
/
BLINK
red-blue buttons
Revision 1:f5e63bb24359, committed 2016-09-12
- Comitter:
- RiP
- Date:
- Mon Sep 12 10:04:27 2016 +0000
- Parent:
- 0:f0c7a0214862
- Commit message:
- red-blue
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f0c7a0214862 -r f5e63bb24359 main.cpp --- a/main.cpp Mon Sep 12 09:59:34 2016 +0000 +++ b/main.cpp Mon Sep 12 10:04:27 2016 +0000 @@ -4,20 +4,21 @@ DigitalIn enables(PTC6); DigitalOut red(LED_RED); -//DigitalOut green(LED_GREEN); +DigitalOut green(LED_GREEN); DigitalOut blue(LED_BLUE); int main() { while(true){ - blue=0; + red=1;blue=1;green=1; if(enable==0) { red=0; } - else + else if(enables==0) { - red=1; + green=0; } + } } \ No newline at end of file