István Cserny
/
Lab01_Nucleo_ledblink
Egyszerű LED villogtatás NUCLEO-F446RE kártyán (MBED2)
Diff: main.cpp
- Revision:
- 2:335d3650f00e
- Parent:
- 0:bf9e6380ebf9
--- a/main.cpp Tue Sep 21 12:37:36 2021 +0000 +++ b/main.cpp Tue Sep 21 13:45:12 2021 +0000 @@ -1,12 +1,12 @@ #include "mbed.h" -DigitalOut myled(LED1); // PA_5 alias LED1 +DigitalOut myled(LED1); // PA_5 alias LED1 int main() { while(1) { - myled = 1; // LED is ON - wait(0.2); // 200 ms - myled = 0; // LED is OFF - wait(1.0); // 1 sec + myled = 1; // LED is ON + wait(0.2); // 200 ms + myled = 0; // LED is OFF + wait(1.0); // 1 sec } } \ No newline at end of file