Karlo Siladi
/
blinky
Test publishing
main.cpp@1:d7a2c59f768f, 2019-01-03 (annotated)
- Committer:
- karlo
- Date:
- Thu Jan 03 11:53:28 2019 +0100
- Revision:
- 1:d7a2c59f768f
- Parent:
- 0:734cb8f86667
mbed stuff
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
karlo |
0:734cb8f86667 | 1 | #include "mbed.h" |
karlo |
0:734cb8f86667 | 2 | |
karlo |
0:734cb8f86667 | 3 | DigitalOut led1(p24); |
karlo |
0:734cb8f86667 | 4 | |
karlo |
0:734cb8f86667 | 5 | // main() runs in its own thread in the OS |
karlo |
0:734cb8f86667 | 6 | int main() |
karlo |
0:734cb8f86667 | 7 | { |
karlo |
0:734cb8f86667 | 8 | while (true) { |
karlo |
0:734cb8f86667 | 9 | // Blink LED and wait 0.5 seconds |
karlo |
0:734cb8f86667 | 10 | led1 = !led1; |
karlo |
0:734cb8f86667 | 11 | wait(0.5f); |
karlo |
0:734cb8f86667 | 12 | } |
karlo |
0:734cb8f86667 | 13 | } |