stm32f429Discovery mbedos

Committer:
zhlyz2003
Date:
Thu Jun 15 16:51:56 2017 +0000
Revision:
0:9c727e104a90
stm32f429Discovery mbedos

Who changed what in which revision?

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