No AHT2X io roles
Describe the bug No AHT2X IO roles. They are non existent in src. No temperature / humidity reading.
Firmware:
- Version: 1.17.700 with AHT2X driver enabled
- Device: TH01Y-CB3S
- Chip/model: BK7231N
- Device config:
startDriver TuyaMCU
startDriver tmSensor
startDriver AHT2X
startDriver I2C
// may be needed, depends on device, some also use 9600
tuyaMCU_setBaudRate 115200
To Reproduce Steps to reproduce the behavior:
- Compile repo with AHT2X driver enabled
- Go to 'Config'
- Click on 'Pin Settings' dropdown, any pin
- No AHT2X_SDA / AHT2X_SCK IO roles
I think that you can set pins for this driver just by putting their indexes after startDriver <DriverName> command:
this device is TuyaMCU though? like the one pictured here https://www.elektroda.com/rtvforum/topic4054857.html
in the case of builds where including the AHT2X driver does not lead to a drop-down entry in the module config page (eg BK-T https://github.com/openshwprojects/OpenBK7231T_App/pull/1490), the driver can be started as:
startDriver AHT2X [SCKpin] [SDApin] [TempCH] [HumCH] eg startDriver AHT2X 26 24 1 2