Supachai Vorapojpisut
/
le484_2016
Course project for LE484 at Thammasat University, class of 2016
main.cpp@2:d117505b89ce, 2017-05-08 (annotated)
- Committer:
- natanich
- Date:
- Mon May 08 03:49:55 2017 +0000
- Revision:
- 2:d117505b89ce
- Parent:
- 1:7ef8fc6acb20
- Child:
- 3:e38819a2b38c
Natanich Bunsila
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 |
natanich | 2:d117505b89ce | 3 | * @author Supachai Vorapojpisut,Vissarut Prakobpon , Natanich Bunsila |
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 |