Site icon Renzo Mischianti

Using DHT12 with alternate IO pins on ESP8266

I'm probably being really stupid here, I've got the I2C example working fine on my NodeMcu, perfect. I need to use an alternative pair of IO pins (IO-0 and IO-2) with an ESP01, I've already got an I2C display working on those pins so I just want the DHT to run in parallel. I just can't work out how to persuade the DHT to work on the alternate pins, nothing clever. I've looked at the examples and the .pdf file but I'm missing something as my attempts either won't compile or simply fail to communicate with the DHT. Thoughts please, multiple attemps with Mr Google haven't really revealed the mystery.  
Exit mobile version