Test firmware for the Supermote hardware.

Dependencies:   K30_I2C libxDot-mbed5

Fork of K30_I2C_Program by Hux Connect

Revision:
2:680fc2690d10
Child:
3:2ab969b31f6b
diff -r 15a68a12eb1e -r 680fc2690d10 HPM/hpm.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HPM/hpm.h	Fri Sep 07 02:54:05 2018 +0000
@@ -0,0 +1,24 @@
+#ifndef HPM_h
+#define HPM_h
+
+#include "mbed.h"
+
+class HPM
+{
+    public:
+        HPM(Serial* device, Serial* debug);
+        bool init(void);
+        bool start_measurement(void);
+        bool stop_measurement(void);
+        bool read_measurement (long int &PM25, long int &PM10);
+        bool stop_autosend(void);
+        bool start_autosend(void);        
+        
+    private:    
+        Serial* _device;
+        Serial* _debug;
+        //long int _PM25;
+        //long int _PM10;
+};
+
+#endif
\ No newline at end of file