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.
Revision 0:43e9d6200c47, committed 2019-03-31
- Comitter:
- CarmineSql
- Date:
- Sun Mar 31 15:15:15 2019 +0000
- Commit message:
- <<program /users/CarmineSql/code/Semaforo-intelligente-con-NUCLEO-F401RE/>>
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 43e9d6200c47 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Mar 31 15:15:15 2019 +0000 @@ -0,0 +1,26 @@ + /*BLINK LED ESTERNO*/ + //CAIAZZO ROMANO e SQUILLACE 3Ai + +#include "mbed.h" //inclusione librerie mbed + + DigitalOut ROSSO(D8); //dichiarazione LED su PIN D8 \\ (LED1)=>LED di DEFAULT +DigitalOut GIALLO(D4); //dichiarazione LED su PIN D4 +DigitalOut VERDE(D7); //dichiarazione LED su PIN D7 + +int main() { //ESEGUI: + while(1) //loop infinito: + { + ROSSO = 1; // ACCENDI LED ROSSO su D8 + wait(0.1); // ASPETTA + ROSSO = 0; // SPEGNI LED ROSSO su D8 + wait(0.2); // ASPETTA + GIALLO = 1; // ACCENDI LED GIALLO su D6 + wait(0.1); // ASPETTA + GIALLO = 0; // SPEGNI LED GIALLO su D7 + wait(0.2); // ASPETTA + VERDE = 1; // ACCENDI LED VERDE su D4 + wait(0.1); // ASPETTA + VERDE = 0; // SPEGNI LED VERDE su D4 + wait(0.2); // ASPETTA e RITORNA ALLA PRIMA ISTRUZIONE + } +}
diff -r 000000000000 -r 43e9d6200c47 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Mar 31 15:15:15 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file