Rick Poppe
/
BLINK
red-blue buttons
Diff: main.cpp
- Revision:
- 1:f5e63bb24359
- Parent:
- 0:f0c7a0214862
--- 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