Wahaj Aslam
/
beatnik
Beatnik
beatnik_main.cpp@1:86e26b586df4, 2018-09-15 (annotated)
- Committer:
- Wahaj
- Date:
- Sat Sep 15 23:02:57 2018 +0000
- Revision:
- 1:86e26b586df4
- Parent:
- 0:24b55a00fad7
base project
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Wahaj | 1:86e26b586df4 | 1 | #include "mbed.h" |
Wahaj | 1:86e26b586df4 | 2 | |
Wahaj | 1:86e26b586df4 | 3 | DigitalOut led1(LED1); |
Wahaj | 1:86e26b586df4 | 4 | |
Wahaj | 1:86e26b586df4 | 5 | // main() runs in its own thread in the OS |
Wahaj | 1:86e26b586df4 | 6 | int main() { |
Wahaj | 1:86e26b586df4 | 7 | while (true) { |
Wahaj | 1:86e26b586df4 | 8 | led1 = !led1; |
Wahaj | 1:86e26b586df4 | 9 | wait(0.5); |
Wahaj | 1:86e26b586df4 | 10 | } |
Wahaj | 1:86e26b586df4 | 11 | } |