Skip to content

Commit

Permalink
Merge pull request #400 from adafruit/add-sht-45
Browse files Browse the repository at this point in the history
Add SHT45 "Driver"
  • Loading branch information
brentru authored Jan 12, 2023
2 parents 557feb5 + 60a6e4e commit 70e8d91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit WipperSnapper
version=1.0.0-beta.57
version=1.0.0-beta.58
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino client for Adafruit.io WipperSnapper
Expand Down
2 changes: 1 addition & 1 deletion src/Wippersnapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
#endif

#define WS_VERSION \
"1.0.0-beta.57" ///< WipperSnapper app. version (semver-formatted)
"1.0.0-beta.58" ///< WipperSnapper app. version (semver-formatted)

// Reserved Adafruit IO MQTT topics
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic
Expand Down
3 changes: 2 additions & 1 deletion src/components/i2c/WipperSnapper_I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
_sen5x->configureDriver(msgDeviceInitReq);
drivers.push_back(_sen5x);
WS_DEBUG_PRINTLN("SEN5X Initialized Successfully!");
} else if (strcmp("sht40", msgDeviceInitReq->i2c_device_name) == 0) {
} else if ((strcmp("sht40", msgDeviceInitReq->i2c_device_name) == 0) ||
(strcmp("sht45", msgDeviceInitReq->i2c_device_name) == 0)) {
_sht4x = new WipperSnapper_I2C_Driver_SHT4X(this->_i2c, i2cAddress);
if (!_sht4x->begin()) {
WS_DEBUG_PRINTLN("ERROR: Failed to initialize sht4x!");
Expand Down

0 comments on commit 70e8d91

Please sign in to comment.