project to test mbed-cli debugging

Committer:
bhimebau
Date:
Wed Aug 01 18:34:28 2018 +0000
Revision:
0:8032d2ab060f
initial commit;

Who changed what in which revision?

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