Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of STMNucleoF401RE_ExampleCode_02_BlinkLED_ by
main.cpp
00001 /**************************************************** 00002 * FAST PROTOTYPING WITH NUCLEO * 00003 * Example Code 02: Blink Led * 00004 * Author: Francesco Bonavolonta * 00005 * Organization: Unina * 00006 *****************************************************/ 00007 00008 #include "mbed.h" 00009 00010 //Instanzia una classe di tipo DigitalOut. L'instanza avra' nome myled e le viene assegnato il pin LED1 00011 DigitalOut myled(LED1); 00012 00013 // Entry point 00014 int main() { 00015 // Il Led lampeggia 00016 while(1) { 00017 myled = 1; // LED is ON 00018 wait(0.2); // Attende 200 ms 00019 myled = 0; // LED is OFF 00020 wait(1.0); // Attende 1 sec 00021 } 00022 }
Generated on Wed Aug 3 2022 13:11:18 by
1.7.2
