test

Committer:
yuqlid
Date:
Sun Nov 19 13:40:14 2017 +0000
Revision:
0:2af8dd31afde
test;

Who changed what in which revision?

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