11/* !
2- * @file WipperSnapper_I2C_Driver_ENS160 .h
2+ * @file WipperSnapper_I2C_Driver_ENS16X .h
33 *
4- * Device driver for a ENS160 MOX Gas Sensor.
4+ * Device driver for a ENS160/ENS161 MOX Gas Sensor.
55 *
66 * Adafruit invests time and resources providing this open source code,
77 * please support Adafruit and open-source hardware by purchasing
1313 *
1414 */
1515
16- #ifndef WipperSnapper_I2C_Driver_ENS160_H
17- #define WipperSnapper_I2C_Driver_ENS160_H
16+ #ifndef WipperSnapper_I2C_Driver_ENS16X_H
17+ #define WipperSnapper_I2C_Driver_ENS16X_H
1818
1919#include " WipperSnapper_I2C_Driver.h"
2020#include < ScioSense_ENS160.h>
2323
2424/* *************************************************************************/
2525/* !
26- @brief Class that provides a sensor driver for the ENS160 temperature
27- and humidity sensor .
26+ @brief Class that provides a sensor driver for the ENS16x temperature
27+ and humidity sensors .
2828*/
2929/* *************************************************************************/
30- class WipperSnapper_I2C_Driver_ENS160 : public WipperSnapper_I2C_Driver {
30+ class WipperSnapper_I2C_Driver_ENS16x : public WipperSnapper_I2C_Driver {
3131
3232public:
3333 /* ******************************************************************************/
3434 /* !
35- @brief Constructor for an ENS160 sensor.
35+ @brief Constructor for an ENS16x sensor.
3636 @param i2c
3737 The I2C interface.
3838 @param sensorAddress
3939 7-bit device address.
4040 */
4141 /* ******************************************************************************/
42- WipperSnapper_I2C_Driver_ENS160 (TwoWire *i2c, uint16_t sensorAddress)
42+ WipperSnapper_I2C_Driver_ENS16x (TwoWire *i2c, uint16_t sensorAddress)
4343 : WipperSnapper_I2C_Driver(i2c, sensorAddress) {
4444 _i2c = i2c;
4545 _sensorAddress = sensorAddress;
4646 }
4747
4848 /* ******************************************************************************/
4949 /* !
50- @brief Destructor for an ENS160 sensor.
50+ @brief Destructor for an ENS16x sensor.
5151 */
5252 /* ******************************************************************************/
53- ~WipperSnapper_I2C_Driver_ENS160 () { delete _ens16x; }
53+ ~WipperSnapper_I2C_Driver_ENS16x () { delete _ens16x; }
5454
5555 /* ******************************************************************************/
5656 /* !
57- @brief Initializes the ENS160 sensor and begins I2C.
57+ @brief Initializes the ENS16x sensor and begins I2C.
5858 @returns True if initialized successfully, False otherwise.
5959 */
6060 /* ******************************************************************************/
@@ -84,7 +84,7 @@ class WipperSnapper_I2C_Driver_ENS160 : public WipperSnapper_I2C_Driver {
8484
8585 /* ******************************************************************************/
8686 /* !
87- @brief Reads the ENS160 's eCO2 sensor into an event.
87+ @brief Reads the ENS16x 's eCO2 sensor into an event.
8888 @param eco2Event
8989 Pointer to an adafruit sensor event.
9090 @returns True if the sensor event was obtained successfully, False
@@ -100,7 +100,7 @@ class WipperSnapper_I2C_Driver_ENS160 : public WipperSnapper_I2C_Driver {
100100
101101 /* ******************************************************************************/
102102 /* !
103- @brief Reads the ENS160 's TVOC sensor into an event.
103+ @brief Reads the ENS16x 's TVOC sensor into an event.
104104 @param tvocEvent
105105 Pointer to an adafruit sensor event.
106106 @returns True if the sensor event was obtained successfully, False
@@ -116,7 +116,7 @@ class WipperSnapper_I2C_Driver_ENS160 : public WipperSnapper_I2C_Driver {
116116
117117 /* ******************************************************************************/
118118 /* !
119- @brief Reads the ENS160 's AQI value into an event.
119+ @brief Reads the ENS16x 's AQI value into an event.
120120 @param rawEvent
121121 Pointer to an adafruit sensor event.
122122 @returns True if the sensor event was obtained successfully, False
@@ -131,7 +131,7 @@ class WipperSnapper_I2C_Driver_ENS160 : public WipperSnapper_I2C_Driver {
131131 }
132132
133133protected:
134- ScioSense_ENS160 *_ens16x; // /< ENS160/1 object
134+ ScioSense_ENS160 *_ens16x; // /< ENS16x object
135135};
136136
137- #endif // WipperSnapper_I2C_Driver_ENS160
137+ #endif // WipperSnapper_I2C_Driver_ENS16X_H
0 commit comments