![](/media/cache/profiles/7de402e749e4b3aa853c13a40aeb7eac.jpg.50x50_q85.jpg)
mbed-os Hello World!
main.cpp@1:6daec419c2cc, 2017-08-02 (annotated)
- Committer:
- tuthai
- Date:
- Wed Aug 02 10:04:40 2017 +0000
- Revision:
- 1:6daec419c2cc
- Parent:
- 0:0e8f7d5af1f2
Downgrade to mbed-os 5.4.7; See https://developer.mbed.org/platforms/Renesas-GR-PEACH/#important-notice
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tuthai | 0:0e8f7d5af1f2 | 1 | #include "mbed.h" |
tuthai | 0:0e8f7d5af1f2 | 2 | |
tuthai | 0:0e8f7d5af1f2 | 3 | DigitalOut led1(LED1); |
tuthai | 0:0e8f7d5af1f2 | 4 | |
tuthai | 0:0e8f7d5af1f2 | 5 | // main() runs in its own thread in the OS |
tuthai | 0:0e8f7d5af1f2 | 6 | int main() { |
tuthai | 0:0e8f7d5af1f2 | 7 | while (true) { |
tuthai | 0:0e8f7d5af1f2 | 8 | led1 = !led1; |
tuthai | 0:0e8f7d5af1f2 | 9 | wait(0.5); |
tuthai | 0:0e8f7d5af1f2 | 10 | } |
tuthai | 0:0e8f7d5af1f2 | 11 | } |
tuthai | 0:0e8f7d5af1f2 | 12 |