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.
Dependencies: 4DGL-uLCD-SE mbed
Fork of Gas_Sensor_best_copy by
Diff: main.cpp
- Revision:
- 1:fec4764e82cb
- Parent:
- 0:bd3708b85a8b
--- 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
