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 #include "mbed.h" 00002 00003 DigitalOut myled(LED1); 00004 DigitalIn pulsador(PC_13); 00005 00006 int main() { 00007 while(1) { 00008 00009 while (pulsador == 0) 00010 { 00011 myled = 1; // LED is ON 00012 wait(0.3); 00013 myled = 0; // LED is ON 00014 wait(0.3); 00015 } 00016 00017 while (pulsador == 1) myled = 0; // LED is ON 00018 00019 00020 //wait(3); // 200 ms 00021 //myled = 0; // LED is OFF 00022 //wait(1.0); // 1 sec 00023 } 00024 }
Generated on Mon Apr 3 2023 05:35:29 by
1.7.2