-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for SHT40-B sensors with alternative i2c address #1
Comments
Unfortunately we don't support to change I2C address on runtime. |
Maybe I explained the issue with too little details, so for now I will reformulate it as a question. How could I communicate with a sensor of type SHT40-BD1B-R2 using this library? I can not set the i2c address anywhere and the default is not 0x44 but 0x45 |
Hej @F-Schmidt99 , Not sure @psachs still has this old issue under the radar so I will jump in. I hope it helps Edit: to be clear I am talking about directly editing the file. Which typically is easier when you cloned the repository and transferred the driver to your project (instead of installing it using the Arduino library manager) |
Hello @qfisch, thank you for the response.
for better readable code. Kind regards. |
Hej @F-Schmidt99 , I just saw your PR as well. As explained there, the feature is planned and should be rolled out soon through our typical generation process. I will keep this issue open to make sure to notify you once it is available. Cheers |
Driver is now updated to included this feature |
Could you please add support for SHT40-B sensors that have the alternative i2c address 0x45?
Currently it is hardcoded in SensirionI2CSht4x.cpp, line 44:
#define SHT4X_I2C_ADDRESS 0x44
You could just add a uint8_t field to the sensor object and use either the constructor or begin(...) method with the current address as the default. This would even be backward compatible with the current library version.
The text was updated successfully, but these errors were encountered: