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 #include "TSISensor.h" 00003 00004 int main(void) { 00005 PwmOut led(LED_GREEN); 00006 TSISensor tsi; 00007 00008 led=1;//Condicion para que el led empiece apagado 00009 while (true) 00010 00011 { 00012 if (tsi.readPercentage()!= 0) // se asigna la condición de estar con luminosidad constante en cualquier instante 00013 { 00014 led = 1.0- tsi.readPercentage(); // lee la coordenada del touch 00015 wait(0.1); // Espera de 0.1 00016 } 00017 00018 00019 } 00020 }
Generated on Thu Jul 28 2022 12:40:26 by
1.7.2