Supachai Vorapojpisut
/
le484_2016
Course project for LE484 at Thammasat University, class of 2016
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 |