Christophe Girardot
/
mbed_blinky_STM32F407
test
Diff: main.cpp
- Revision:
- 0:85f4c1d7a785
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Nov 13 15:00:35 2019 +0000 @@ -0,0 +1,34 @@ +#include "mbed.h" + +DigitalOut myled(PA_5); +DigitalOut myled1(PA_6); +DigitalOut myled2(PA_7); +DigitalOut myled3(PA_8); + +int main() { + while(1) { + myled = 1; + myled1 = 0; + myled2 = 0; + myled3 = 0; + wait(0.2); + + myled = 0; + myled1 = 1; + myled2 = 0; + myled3 = 0; + wait(0.2); + + myled = 0; + myled1 = 0; + myled2 = 1; + myled3 = 0; + wait(0.2); + + myled = 0; + myled1 = 0; + myled2 = 0; + myled3 = 1; + wait(0.2); + } +}