Neil Hardy / Mbed 2 deprecated Gas_Sensor_Array

Dependencies:   4DGL-uLCD-SE mbed

Fork of Gas_Sensor_best_copy by Neil Hardy

Revision:
1:fec4764e82cb
Parent:
0:bd3708b85a8b
diff -r bd3708b85a8b -r fec4764e82cb main.cpp
--- a/main.cpp	Thu Jun 16 21:59:31 2016 +0000
+++ b/main.cpp	Tue Jun 28 18:58:40 2016 +0000
@@ -27,7 +27,7 @@
 string gas[] = {"NO", "NO2"};
 
 //tare button
-DigitalIn tareButton(p5);
+InterruptIn tareButton(p5);
 
 //initialize screen
 uLCD_4DGL uLCD(p28, p27, p29);
@@ -35,6 +35,11 @@
 //establish sensor array
 GasArray Device(number, baseR, pwrV, dividerR, places, ISensitivityM, type, gas);
 
+void zero()
+{
+    Device.tare();
+}
+
 int main()
 {
     //setup button
@@ -58,9 +63,4 @@
         //display percentages
         Device.display_cont(&uLCD);
     }
-}
-
-void zero()
-{
-    //take voltage, use it to reform base resistances
 }
\ No newline at end of file