Course project for LE484 at Thammasat University, class of 2016

Committer:
vsupacha
Date:
Mon May 08 03:27:30 2017 +0000
Revision:
0:aefb68fd2505
Child:
1:7ef8fc6acb20
Initial repository from mbed os blinky template

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vsupacha 0:aefb68fd2505 1 /**
vsupacha 0:aefb68fd2505 2 * @brief Main loop: XBee protocol handler
vsupacha 0:aefb68fd2505 3 * @author Supachai Vorapojpisut
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