Compiler Test
/
mbed-os-example-blinky99
q
main.cpp@0:8a5b0c7c53fa, 2017-10-19 (annotated)
- Committer:
- compiler2test
- Date:
- Thu Oct 19 15:24:51 2017 +0000
- Revision:
- 0:8a5b0c7c53fa
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
compiler2test | 0:8a5b0c7c53fa | 1 | #include "mbed.h" |
compiler2test | 0:8a5b0c7c53fa | 2 | |
compiler2test | 0:8a5b0c7c53fa | 3 | DigitalOut led1(LED1); |
compiler2test | 0:8a5b0c7c53fa | 4 | |
compiler2test | 0:8a5b0c7c53fa | 5 | // main() runs in its own thread in the OS |
compiler2test | 0:8a5b0c7c53fa | 6 | int main() { |
compiler2test | 0:8a5b0c7c53fa | 7 | while (true) { |
compiler2test | 0:8a5b0c7c53fa | 8 | led1 = !led1; |
compiler2test | 0:8a5b0c7c53fa | 9 | wait(0.5); |
compiler2test | 0:8a5b0c7c53fa | 10 | } |
compiler2test | 0:8a5b0c7c53fa | 11 | } |
compiler2test | 0:8a5b0c7c53fa | 12 |