simple CCS811 driver
Dependencies: AMS_ENS210_temp_humid_sensor
Dependents: TBSense2_Sensor_Demo
Fork of AMS_CCS811_gas_sensor by
Diff: AMS_CCS811.h
- Revision:
- 8:58a36d9218be
- Parent:
- 7:5c95614a61ee
- Child:
- 15:cf658680c53f
--- a/AMS_CCS811.h Tue Jan 24 10:47:38 2017 +0000 +++ b/AMS_CCS811.h Tue Jan 24 11:21:43 2017 +0000 @@ -280,6 +280,20 @@ */ uint16_t raw_read(); + /** Get the most recent Tempurature(C) measurement from the ENS210 (if attached and enabled).\ \n + * Will be at most as old as the ENS210 poll time + * + * @return Most recent Tempurature(C) measurement from the ENS210 + */ + float temp_read(); + + /** Get the most recent Relative Humidity(%) measurement from the ENS210 (if attached and enabled).\ \n + * Will be at most as old as the ENS210 poll time + * + * @return Most recent Relative Humidity(%) measurement from the ENS210 + */ + float humid_read(); + /** Get current error status * * @return True when error has occured, false when no error has occured @@ -377,6 +391,8 @@ void update_ens210_timer(); Ticker _ens210_poll_t; void ens210_isr(); + float temp_reading; + float humid_reading; float fractions[9]; void _init_fractions();