Version Beta para la FRDM-KL46Z del original de Arduino Uno
Revision 17:4f5b8e228f4a, committed 2019-01-16
- Comitter:
- RazielLopez
- Date:
- Wed Jan 16 01:47:15 2019 +0000
- Parent:
- 16:15084c17d3b4
- Commit message:
- Counting and ready for first release .... TEAM T says hello to the world for the first time
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jan 14 06:56:50 2019 +0000
+++ b/main.cpp Wed Jan 16 01:47:15 2019 +0000
@@ -549,7 +549,7 @@
if (Deshidratando) {
Conteo_Cronometro(); //Cronometro Activado.
PuertaAb = !PIN_SWITCH; //Checa el estado de la puerta.
- NInterrupciones ++; //Incrementa el numero de interrupciones
+ //NInterrupciones ++; //Incrementa el numero de interrupciones
}
Checar_Botones(); //Lee el estado de los botones.
@@ -819,8 +819,8 @@
Imprime_InfoDeshidratacion(); //Colocamos mensajes en la LCD.
while (!PuertaAb && Deshidratando && !Bandera) { //Mientras la puerta este cerrada y la variable Desidratando sea verdadera.
error_code=dht.readData(); //Lee el Sensor de Humedad y Temperatura
- wait(5);
- if (error_code != 0) {
+ //wait(5);
+ /*if (error_code != 0) {
Terminal.printf("\rError Reading DHT "); //No se puedo leer DHT
Terminal.printf("\r\nPlease Check Sensor !!! \n\r"); //Envia mensaje de error a la Terminal
lcd.cls(); //Limpiamos LCD.
@@ -832,7 +832,7 @@
wait(10); //Espera 10 seg
}
Terminal.printf("\rReading DHT ... ");
- Terminal.printf("\r\nError Code: %d \r\n", error_code);
+ Terminal.printf("\r\nError Code: %d \r\n", error_code); */
h = dht.ReadHumidity(); //Se lee la humedad
Terminal.printf("\rHumedad: %.2f ", h);
t = dht.ReadTemperature(CELCIUS); //Se lee la temperatura: CELCIUS=0,FARENHEIT=1,KELVIN=2
Antulio Morgado
