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.
Fork of mbed-os-example-mbed5-blinky by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut led1(LED1); 00004 Serial pc(USBTX, USBRX); // tx, rx comunicazione via USB 00005 00006 // main() runs in its own thread in the OS 00007 int main() { 00008 while (true) { 00009 pc.baud(115200); 00010 pc.printf("Inizio attesa ON\n"); 00011 wait(1.2); // attesa 1200 ms 00012 pc.printf("Accensione LED\n"); 00013 led1 = 1; // led1 ON 00014 00015 pc.printf("Inizio attesa OFF\n"); 00016 wait(0.5); // attesa 500 ms 00017 led1=0; // led1 OFF 00018 pc.printf("Spegnimento LED\n"); 00019 } 00020 } 00021
Generated on Thu Jul 14 2022 02:13:50 by
1.7.2
