Fork of https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
Dependencies: mbed
main.cpp@1:29e02022a032, 2019-02-18 (annotated)
- Committer:
- c_jin
- Date:
- Mon Feb 18 03:55:46 2019 +0000
- Revision:
- 1:29e02022a032
- Parent:
- 0:49059b431b51
Fork of https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
c_jin | 0:49059b431b51 | 1 | #include "mbed.h" |
c_jin | 0:49059b431b51 | 2 | |
c_jin | 0:49059b431b51 | 3 | DigitalOut led1(LED1); |
c_jin | 0:49059b431b51 | 4 | |
c_jin | 0:49059b431b51 | 5 | // main() runs in its own thread in the OS |
c_jin | 0:49059b431b51 | 6 | int main() { |
c_jin | 0:49059b431b51 | 7 | while (true) { |
c_jin | 0:49059b431b51 | 8 | led1 = !led1; |
c_jin | 0:49059b431b51 | 9 | wait(0.5); |
c_jin | 0:49059b431b51 | 10 | } |
c_jin | 0:49059b431b51 | 11 | } |
c_jin | 0:49059b431b51 | 12 | |
c_jin | 0:49059b431b51 | 13 |