Blinky program for SDT boards.

Committer:
andrew_chong
Date:
Wed Aug 29 02:13:34 2018 +0000
Revision:
0:ef1d002e930e
The blinky program for SDT. I only updated mbed-os to the latest version. Later, this program can be deleted if mbed-os 5.9.7 is published.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrew_chong 0:ef1d002e930e 1 #include "mbed.h"
andrew_chong 0:ef1d002e930e 2
andrew_chong 0:ef1d002e930e 3 DigitalOut led1(LED1);
andrew_chong 0:ef1d002e930e 4
andrew_chong 0:ef1d002e930e 5 // main() runs in its own thread in the OS
andrew_chong 0:ef1d002e930e 6 int main() {
andrew_chong 0:ef1d002e930e 7 while (true) {
andrew_chong 0:ef1d002e930e 8 led1 = !led1;
andrew_chong 0:ef1d002e930e 9 wait(0.5);
andrew_chong 0:ef1d002e930e 10 }
andrew_chong 0:ef1d002e930e 11 }
andrew_chong 0:ef1d002e930e 12