Grove Air Quality Sensor.

Fork of Grove_Air_Quality_Sensor_Library by Seeed

Revision:
3:c25365a52d78
Parent:
2:95009177a860
Child:
4:0ca4a9fd1b5d
diff -r 95009177a860 -r c25365a52d78 Air_Quality.h
--- a/Air_Quality.h	Fri Dec 23 20:19:35 2016 +0200
+++ b/Air_Quality.h	Fri Dec 23 22:31:17 2016 +0200
@@ -18,11 +18,15 @@
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
+#ifndef __AIRQUALITY_H__
+#define __AIRQUALITY_H__
+
 #include "mbed.h"
 #include "mbed_debug.h"
 
-#ifndef __AIRQUALITY_H__
-#define __AIRQUALITY_H__
+#ifndef DEBUG_AIR_QUALITY
+#define DEBUG_AIR_QUALITY 0
+#endif
 
 enum air_quality_values {
     UNKNOWN = -1,
@@ -35,16 +39,15 @@
 class AirQuality {
 public:
     int i;
-    long vol_standard;
-    int init_voltage;
-    int first_vol;
-    int last_vol;
+    long standard_vol;
+    uint16_t init_voltage;
+    uint16_t first_vol;
+    uint16_t  last_vol;
     int temp;
-    int counter;
     bool timer_index;
     bool error;
 
-    void init(PinName pin, void(*IRQ)(void));
+    void init(PinName pin);
 
     air_quality_values slope(void);