Initial version. Illuminates the LED when the user button is held down. Otherwise, the LED is off. Variation on 21_Button_v5.
Diff: main.cpp
- Revision:
- 29:0b58d21e87d6
- Parent:
- 22:af9dcf379926
- Child:
- 82:abf1b1785bd7
diff -r 239239e33d92 -r 0b58d21e87d6 main.cpp --- a/main.cpp Tue Feb 28 13:30:04 2017 +0000 +++ b/main.cpp Sun Mar 05 20:30:02 2017 +0000 @@ -3,7 +3,6 @@ DigitalOut led1(LED1); // main() runs in its own thread in the OS -// (note the calls to wait below for delays) int main() { while (true) { led1 = !led1;