Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@1:7ef8fc6acb20, 2017-05-08 (annotated)
- Committer:
- 3ecauz
- Date:
- Mon May 08 03:43:59 2017 +0000
- Revision:
- 1:7ef8fc6acb20
- Parent:
- 0:aefb68fd2505
- Child:
- 2:d117505b89ce
Add name VIssarut Prakobpon
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| vsupacha | 0:aefb68fd2505 | 1 | /** |
| vsupacha | 0:aefb68fd2505 | 2 | * @brief Main loop: XBee protocol handler |
| 3ecauz | 1:7ef8fc6acb20 | 3 | * @author Supachai Vorapojpisut,Vissarut Prakobpon |
| vsupacha | 0:aefb68fd2505 | 4 | * @date May 8, 2017 |
| vsupacha | 0:aefb68fd2505 | 5 | */ |
| vsupacha | 0:aefb68fd2505 | 6 | |
| vsupacha | 0:aefb68fd2505 | 7 | #include "mbed.h" |
| vsupacha | 0:aefb68fd2505 | 8 | |
| vsupacha | 0:aefb68fd2505 | 9 | DigitalOut led1(LED1); |
| vsupacha | 0:aefb68fd2505 | 10 | |
| vsupacha | 0:aefb68fd2505 | 11 | // main() runs in its own thread in the OS |
| vsupacha | 0:aefb68fd2505 | 12 | int main() { |
| vsupacha | 0:aefb68fd2505 | 13 | while (true) { |
| vsupacha | 0:aefb68fd2505 | 14 | led1 = !led1; |
| vsupacha | 0:aefb68fd2505 | 15 | wait(0.5); |
| vsupacha | 0:aefb68fd2505 | 16 | } |
| vsupacha | 0:aefb68fd2505 | 17 | } |
| vsupacha | 0:aefb68fd2505 | 18 |
