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.
main.cpp
00001 /*BLINK LED ESTERNO*/ 00002 //CAIAZZO ROMANO e SQUILLACE 3Ai 00003 00004 #include "mbed.h" //inclusione librerie mbed 00005 00006 DigitalOut ROSSO(D8); //dichiarazione LED su PIN D8 \\ (LED1)=>LED di DEFAULT 00007 DigitalOut GIALLO(D4); //dichiarazione LED su PIN D4 00008 DigitalOut VERDE(D7); //dichiarazione LED su PIN D7 00009 00010 int main() { //ESEGUI: 00011 while(1) //loop infinito: 00012 { 00013 ROSSO = 1; // ACCENDI LED ROSSO su D8 00014 wait(0.1); // ASPETTA 00015 ROSSO = 0; // SPEGNI LED ROSSO su D8 00016 wait(0.2); // ASPETTA 00017 GIALLO = 1; // ACCENDI LED GIALLO su D6 00018 wait(0.1); // ASPETTA 00019 GIALLO = 0; // SPEGNI LED GIALLO su D7 00020 wait(0.2); // ASPETTA 00021 VERDE = 1; // ACCENDI LED VERDE su D4 00022 wait(0.1); // ASPETTA 00023 VERDE = 0; // SPEGNI LED VERDE su D4 00024 wait(0.2); // ASPETTA e RITORNA ALLA PRIMA ISTRUZIONE 00025 } 00026 }
Generated on Sat Jul 16 2022 02:12:08 by
