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 Ticker flipper; 00003 DigitalOut encendido(D4); 00004 DigitalOut apagado(D5); 00005 DigitalOut parpadeo(D6); 00006 DigitalOut motor(LED2); 00007 void flip() { 00008 motor = !motor; 00009 encendido = !encendido; 00010 apagado=!apagado; 00011 } 00012 int main() { 00013 apagado=1; 00014 encendido = 0; 00015 motor = 1; 00016 parpadeo=1; 00017 00018 flipper.attach(&flip, 2.0); 00019 00020 while(1) { 00021 parpadeo = !parpadeo; 00022 wait(0.2); 00023 } 00024 }
Generated on Sun Jul 24 2022 23:51:45 by
1.7.2