![](/media/cache/profiles/arek_image.jpg.50x50_q85.jpg)
Public copy of mbed-os-example-blinky
main.cpp@0:10ac978eca1e, 2018-07-16 (annotated)
- Committer:
- arekzaluski
- Date:
- Mon Jul 16 13:16:37 2018 +0000
- Revision:
- 0:10ac978eca1e
public test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
arekzaluski | 0:10ac978eca1e | 1 | #include "mbed.h" |
arekzaluski | 0:10ac978eca1e | 2 | |
arekzaluski | 0:10ac978eca1e | 3 | DigitalOut led1(LED1); |
arekzaluski | 0:10ac978eca1e | 4 | |
arekzaluski | 0:10ac978eca1e | 5 | // main() runs in its own thread in the OS |
arekzaluski | 0:10ac978eca1e | 6 | int main() { |
arekzaluski | 0:10ac978eca1e | 7 | while (true) { |
arekzaluski | 0:10ac978eca1e | 8 | led1 = !led1; |
arekzaluski | 0:10ac978eca1e | 9 | wait(0.5); |
arekzaluski | 0:10ac978eca1e | 10 | } |
arekzaluski | 0:10ac978eca1e | 11 | } |
arekzaluski | 0:10ac978eca1e | 12 |