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.
Diego.h
00001 #ifndef Diego 00002 #define Diego 00003 00004 #include "mbed.h" 00005 00006 00007 00008 void Diego_Choque(int dataX, int dataY) 00009 { 00010 DigitalOut rojo(LED_RED); 00011 DigitalOut azul(LED_BLUE); 00012 rojo=1; 00013 azul=1; 00014 if(abs(dataX)>25000 && abs(dataY)>25000) 00015 { 00016 azul=0; 00017 while(1) 00018 { 00019 azul=!azul; 00020 rojo=!rojo; 00021 wait(.1); 00022 } 00023 } 00024 } 00025 00026 #endif
Generated on Sat Jul 23 2022 03:04:05 by
1.7.2