Closed Johnnybyzhang closed 3 weeks ago
https://github.com/Klipper3d/klipper/blob/96cceed23efc7a3759ecfba0a228cdcb4d5244d3/klippy/extras/aht10.py#L19 This line only works on AHT10, the AHT20 Series I2C sensor use a different command for INIT and will not work with this. Attached is a Datasheet for AHT20. 00557B34ED120268320A4810FF8DED4D.pdf If possible, please make the AHT20 Series independent from AHT10, all the modification that is needed is to change the first command from 0xE1 to 0x71, doing so is also compatible with DHT20 and AM2108
Closing and move over to discord.
https://github.com/Klipper3d/klipper/blob/96cceed23efc7a3759ecfba0a228cdcb4d5244d3/klippy/extras/aht10.py#L19 This line only works on AHT10, the AHT20 Series I2C sensor use a different command for INIT and will not work with this. Attached is a Datasheet for AHT20. 00557B34ED120268320A4810FF8DED4D.pdf If possible, please make the AHT20 Series independent from AHT10, all the modification that is needed is to change the first command from 0xE1 to 0x71, doing so is also compatible with DHT20 and AM2108