Simple wait example

main.cpp

Committer:
mab5449
Date:
8 months ago
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);
     }
 }