copy of mbed-os-example-blinky

Committer:
tulanthoar
Date:
Thu Apr 27 16:03:40 2017 -0600
Revision:
1:5127448aa699
Parent:
0:ea82a5a12af4
change to LED3 to distinguish from every other blinky

Who changed what in which revision?

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