BM1383AGLV sensor library

Dependents:   simple-sensor-client rohm-SensorShield-example

Revision:
1:997a1eb76a4f
Parent:
0:d505f3c67a62
--- a/BM1383AGLV.h	Sat Feb 03 14:26:39 2018 +0000
+++ b/BM1383AGLV.h	Fri Nov 20 14:55:11 2020 +0000
@@ -47,6 +47,8 @@
 #define BM1383AGLV_TEMPERATURE_MSB     (0x1D)
 #define BM1383AGLV_TEMPERATURE_LSB     (0x1E)
 
+#define BM1383AGLV_WAIT_READY_STATUS    0
+
 #ifdef _DEBUG
 extern Serial pc;
 #define DEBUG_PRINT(...) pc.printf(__VA_ARGS__)
@@ -119,7 +121,8 @@
     float getTemperature();
 
 private:
-    I2C m_i2c;
+    I2C *i2c_p;
+    I2C &i2c;
     int m_addr;
     uint8_t m_buf[3];
     void readRegs(int addr, uint8_t * data, int len);