User Tools

Site Tools


syntouch_numatac_sensor_hello_world

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
syntouch_numatac_sensor_hello_world [2023/06/13 14:26] fpalustresyntouch_numatac_sensor_hello_world [2023/06/17 07:28] (current) – [Programming] fpalustre
Line 197: Line 197:
     acPressure = samplePAC();     acPressure = samplePAC();
          
-    while ((acPressure < 2070) && (dcPressure ==163 || dcPressure == 164)) { +    if ((acPressure < 2070) && (dcPressure ==163 || dcPressure == 164)) { 
-      Serial.println("Nothing"); +        Serial.println("Nothing"); 
-      break;+    }  
 +    else if ((acPressure > 2100) && (dcPressure > 150)) { 
 +        Serial.println("Foam");
     }     }
-   +    else if ((acPressure < 2100)  && (dcPressure != 163 && dcPressure != 164)) { 
-    while ((acPressure > 2100) && (dcPressure > 150)) { +        Serial.println("Al");
-      Serial.println("Foam"); +
-      break; +
-    } +
-    +
-    while ((acPressure < 2100)  && ((dcPressure != 163 || dcPressure != 164))  +
-      Serial.print("Al")+
-      break;+
     }     }
 } }
syntouch_numatac_sensor_hello_world.1686691572.txt.gz · Last modified: by fpalustre