TestingCrew / Mbed OS TechBreakThrough

Fork of TechBreakThrough by Mac Lobdell

Committer:
maclobdell
Date:
Tue Jan 02 19:31:52 2018 +0000
Revision:
0:181267edd351
test

Who changed what in which revision?

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