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.
temperatura.h
00001 void temperatura(); 00002 void temperatura() 00003 { 00004 00005 //Salidas digitales 00006 00007 //Entradas analogicas 00008 AnalogIn ain2(PC_2); 00009 00010 //Salidas analogicas 00011 00012 //Variables auxiliares 00013 00014 //Comunicacion 00015 Serial device (PA_2,PA_3,115200); 00016 00017 if(ain2 < 0.25f) { //Condicionamiento para detectar temperatura baja 00018 device.printf("Alarma de temperatura baja\n"); 00019 } 00020 00021 if(ain2 >= 0.25f and ain2 < 0.50f) { //Condicionamiento para temperatura normal 00022 // device.printf("temperatura normal\n"); 00023 } 00024 00025 if(ain2 >= 0.50f and ain2 < 0.70f) { //Condicionamiento para detectar temperatura alta 00026 device.printf("Alarma de temperatura alta\n"); 00027 } 00028 00029 if(ain2 >= 0.70f) { //Condicionamiento para detectar nivel alto 00030 device.printf("Alarma de temperatura alta alta\n"); 00031 } 00032 00033 }
Generated on Wed Jul 13 2022 07:14:45 by
1.7.2