Template for mbed-os

Committer:
noutram
Date:
Tue Sep 18 13:39:05 2018 +0000
Revision:
0:30c2b4019a20
Blinky template project for mbed-os

Who changed what in which revision?

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