sandbox / Mbed OS mbed-os-example-blinky

Fork of mbed-os-example-blinky by Mac Lobdell

Committer:
maclobdell
Date:
Fri Nov 11 16:06:59 2016 +0000
Revision:
1:7edc7fe1a8ce
Parent:
0:c8e170f9079e
testing blah

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maclobdell 0:c8e170f9079e 1 #include "mbed.h"
maclobdell 0:c8e170f9079e 2
maclobdell 1:7edc7fe1a8ce 3 DigitalOut led1(LED2);
maclobdell 0:c8e170f9079e 4
maclobdell 0:c8e170f9079e 5 // main() runs in its own thread in the OS
maclobdell 0:c8e170f9079e 6 // (note the calls to Thread::wait below for delays)
maclobdell 0:c8e170f9079e 7 int main() {
maclobdell 0:c8e170f9079e 8 while (true) {
maclobdell 0:c8e170f9079e 9 led1 = !led1;
maclobdell 0:c8e170f9079e 10 Thread::wait(500);
maclobdell 0:c8e170f9079e 11 }
maclobdell 0:c8e170f9079e 12 }
maclobdell 0:c8e170f9079e 13