![](/media/cache/group/Nucleo64_main_logo_1024_ump3TVC.jpg.250x250_q85.jpg.pagespeed.ce.5IH0SYe6L_.jpg.50x50_q85.jpg)
Example code 02
Dependencies: mbed
Fork of STMNucleoF401RE_ExampleCode_02_BlinkLED_ by
main.cpp
- Committer:
- STmdangelo
- Date:
- 2016-10-19
- Revision:
- 2:1ab0a73dd25b
- Parent:
- 0:7d5534bf57c3
File content as of revision 2:1ab0a73dd25b:
/**************************************************** * FAST PROTOTYPING WITH NUCLEO * * Example Code 02: Blink Led * * Author: Mauro D'Angelo * * Organization: STMicroelectronics * *****************************************************/ #include "mbed.h" //Instanzia una classe di tipo DigitalOut. L'instanza avra' nome myled e le viene assegnato il pin LED1 DigitalOut myled(LED1); // Entry point int main() { // Il Led lampeggia while(1) { myled = 1; // LED is ON wait(0.2); // Attende 200 ms myled = 0; // LED is OFF wait(1.0); // Attende 1 sec } }