Sarah Marsh
/
senthil
test
main.cpp@0:1b0261fbf53c, 2017-09-27 (annotated)
- Committer:
- sarahmarshy
- Date:
- Wed Sep 27 20:36:23 2017 +0000
- Revision:
- 0:1b0261fbf53c
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sarahmarshy | 0:1b0261fbf53c | 1 | #include "mbed.h" |
sarahmarshy | 0:1b0261fbf53c | 2 | |
sarahmarshy | 0:1b0261fbf53c | 3 | DigitalOut led1(LED1); |
sarahmarshy | 0:1b0261fbf53c | 4 | |
sarahmarshy | 0:1b0261fbf53c | 5 | // main() runs in its own thread in the OS |
sarahmarshy | 0:1b0261fbf53c | 6 | int main() { |
sarahmarshy | 0:1b0261fbf53c | 7 | while (true) { |
sarahmarshy | 0:1b0261fbf53c | 8 | led1 = !led1; |
sarahmarshy | 0:1b0261fbf53c | 9 | wait(0.5); |
sarahmarshy | 0:1b0261fbf53c | 10 | } |
sarahmarshy | 0:1b0261fbf53c | 11 | } |
sarahmarshy | 0:1b0261fbf53c | 12 |