MtSense01 Easy use interface

Dependents:   Mt05_MtSense01

Files at this revision

API Documentation at this revision

Comitter:
johnathanlyu
Date:
Fri Apr 27 09:44:05 2018 +0000
Parent:
1:26745d857755
Commit message:
follow sensor library update

Changed in this revision

MtSense01.cpp Show annotated file Show diff for this revision Revisions of this file
MtSense01.h Show annotated file Show diff for this revision Revisions of this file
diff -r 26745d857755 -r 9a301d7b8f44 MtSense01.cpp
--- a/MtSense01.cpp	Fri Jun 02 08:02:08 2017 +0000
+++ b/MtSense01.cpp	Fri Apr 27 09:44:05 2018 +0000
@@ -1,9 +1,8 @@
 #include "MtSense01.h"
 
-MtSense01::MtSense01(I2C& i2c): sht21(i2c), bmp280(i2c) {
+MtSense01::MtSense01(I2C& i2c, Serial& pc): sht21(i2c, pc), bmp280(i2c) {
 }
 
-
 int MtSense01::Initial() {
     
     bmp280.init();
diff -r 26745d857755 -r 9a301d7b8f44 MtSense01.h
--- a/MtSense01.h	Fri Jun 02 08:02:08 2017 +0000
+++ b/MtSense01.h	Fri Apr 27 09:44:05 2018 +0000
@@ -7,7 +7,7 @@
 
 class MtSense01 {
     public:
-        MtSense01(I2C& i2c);
+        MtSense01(I2C& i2c, Serial& pc);
         int Initial();
         int readData(float* pTemperature = NULL, int* pPressure = NULL, float* pHumidity = NULL);
         float getTemperature();