OpenBK7231T_App icon indicating copy to clipboard operation
OpenBK7231T_App copied to clipboard

Something strange with pin assignment

Open tilator opened this issue 4 months ago • 4 comments

Describe the bug When I have DHT11 connected and configured to GPIO14, it reports it on the home page as connected to pin 10.

Firmware:

  • 1.18.163
  • ESP8266 (Sonoff Basic)

And not any values are given.

I did also try to config it other pins and it seems to report every one 4 smaller than what it is configured to.

Same HW did work just fine using Tasmota. I just would like to change it to OpenESP.

tilator avatar Sep 15 '25 12:09 tilator

See discussion in elektroda thread: this represents the internal pin number, not the gpio. And: DHT is not enabled in base ESP8266 build, so the display of the pin is not your real problem... Maybe if I find some time I can address one of these, to "hide" code for unused functions/drivers would have higher priority for me. Both will be challenging to find all related code

MaxineMuster avatar Sep 21 '25 06:09 MaxineMuster

Now I don't understand at all. Internal pins do not have number 0 at all, pin numbers 1-5 represent mostly different VDDs etc.

B.T.W: working DS1820 have higher priority to me than DHT.

tilator avatar Sep 21 '25 07:09 tilator

Sorry for the confusion, "internal" meant OBK-internal, not to confuse with MCU internal numbers.

DS1820 will need coding to get timing correct, doing this is a "time consuming" ;-) task, but I will try

MaxineMuster avatar Sep 21 '25 07:09 MaxineMuster

You might try this one. Timing is really hard to do here. Changing pin from output to input is so time consuming, I had to remove all delays to get it "kind of" working.

https://github.com/MaxineMuster/OpenBK7231T_App/actions/runs/18063697171

MaxineMuster avatar Sep 27 '25 19:09 MaxineMuster