adafruit / Adafruit_AHTX0

Arduino library for AHT10 and AHT20 sensors!
Other
63 stars 11 forks source link

Add alternative I2C address as parameter for the begin() method #7

Closed jbaumann closed 2 years ago

jbaumann commented 2 years ago

The quality of the AHTX0 library is very good, but it is currently not possible to change the I2C address of the sensor to 0x39. By adding an additional parameter to the begin() method (with a default to guarantee compatibility) this can be solved with minimal effort.

ladyada commented 2 years ago

when is the address 0x39? a PR to allow alternate addresses would be welcome!

jbaumann commented 2 years ago

With pleasure. I will prepare the PR in the next days.

ladyada commented 2 years ago

done!