stm32f429Discovery mbedos

main.cpp

Committer:
zhlyz2003
Date:
2017-06-15
Revision:
0:9c727e104a90

File content as of revision 0:9c727e104a90:

#include "mbed.h"

DigitalOut led1(LED1);

// main() runs in its own thread in the OS
// (note the calls to wait below for delays)
int main() {
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}