sorry, I don't if this is the right place to post my question.
I used to work with esp8266.
I discovered esp32 with a TTGO v1.1
I manage to print things on the screen.
Now I would like to use a DS18b20 sensor, but I don't know where are the pins we can use with ttgo...
I try pin 2 25 or 12 but the sensor is never found.
If I replace the ttgo with an esp8266 it works great !!!
What I don't understand is how to name the pin numbers ???
D1, D2 or so seems to be not working.
I try 1 2 25, it doesn't work either...
I code with Visual Studio code (platformio)
I put this at the begining of my code :
Code: Select all
#define ONE_WIRE_BUS 2 OneWire ds(ONE_WIRE_BUS); // (a 4.7K resistor is necessary - 5.7K work with 3.3 ans 5V power) DallasTemperature sensors(&ds); DeviceAddress insideThermometer;
Thank you for your help.