A Library for the AMS ENS210 temperature and humidity sensor.
Dependents: AMS_CCS811_gas_sensor AMS_CCS811_gas_sensor
Diff: AMS_ENS210.cpp
- Revision:
- 7:d61772b5cd3b
- Parent:
- 6:475b764b720d
- Child:
- 8:1a7d241afbcb
--- a/AMS_ENS210.cpp Tue Jan 24 10:46:20 2017 +0000 +++ b/AMS_ENS210.cpp Tue Jan 24 14:08:26 2017 +0000 @@ -7,7 +7,8 @@ _power_mode(CONFIG_POWER_MODE), _reset(0), temp_reading(0), - humid_reading(0) + humid_reading(0), + _i2c() { _i2c = i2c; } @@ -18,7 +19,8 @@ _power_mode(CONFIG_POWER_MODE), _reset(0), temp_reading(0), - humid_reading(0) + humid_reading(0), + _i2c() { _i2c = i2c; } @@ -29,7 +31,8 @@ _power_mode(low_power), _reset(0), temp_reading(0), - humid_reading(0) + humid_reading(0), + _i2c() { _i2c = i2c; }