Nucleo_Example_Demo.

Dependencies:   mbed

main.cpp

Committer:
bcostm
Date:
2017-07-06
Revision:
1:6554c60faa06
Parent:
0:d5bd863b2036
Child:
3:a7b520fad123

File content as of revision 1:6554c60faa06:

#include "mbed.h"

DigitalOut led(LED1);

int main()
{
    while(1) {
        led = 1; // LED is ON
        wait(0.2); // 200 ms
        led = 0; // LED is OFF
        wait(0.8); // 800 ms
    }
}