a b / Mbed 2 deprecated EL_CODIGO_ASPI-01

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
grupo_17_2020
Date:
Wed Nov 25 20:47:57 2020 +0000
Parent:
0:0f497d629677
Commit message:
commmit;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Nov 19 12:07:27 2020 +0000
+++ b/main.cpp	Wed Nov 25 20:47:57 2020 +0000
@@ -402,22 +402,27 @@
 }
 
 void TEMPERATURA(){
-    if(TEMPIN >= 0.85f) {
+    if(TEMPIN >= 0.65f){
+        RED = OFF;
+        GREEN = OFF;
+        BLUE = ON;
+    } 
+    if(TEMPIN < 0.65f && TEMPIN >= 0.55f){
         RED = OFF;
         GREEN = ON;
         BLUE = OFF;  
     }  
-    if(TEMPIN < 0.85f && TEMPIN >= 0.55f){
+    if(TEMPIN < 0.55f && TEMPIN >= 0.25f){
         RED = OFF;
         GREEN = ON;
         BLUE = ON; 
     }
-    if(TEMPIN < 0.55f && TEMPIN >= 0.28f){
+    if(TEMPIN < 0.25f && TEMPIN >= 0.15f){
         RED = ON;
         GREEN = OFF;
         BLUE = OFF;
     }
-    if(TEMPIN < 0.28f){
+    if(TEMPIN < 0.15f){
         RED = ON;
         GREEN = OFF;
         BLUE = ON;