Simple wait example

main.cpp

Committer:
mab5449
Date:
2017-01-19
Revision:
0:7d249aa3d880

File content as of revision 0:7d249aa3d880:


 #include "mbed.h"

 DigitalOut heartbeat(LED1);

 int main() {
     while (1) {
         heartbeat = 1;
         wait(0.5);
         heartbeat = 0;
         wait(0.5);
     }
 }