I am working on getting ESPnow working with two Heltec ESP32 boards.
The boards that I have , have built in OLED displays. The SCL and SDA pins are different
than than for the stand alone OLED’s,
My question is , how do I change the IO pin numbers in the code? I can’t find any variables that reference them.
Take a look at this tutorial: https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/
Check this specific section:
I hope this helps.
I looked at the code for espNow_sender and espNow_receiver.
Neither of these have an “include” for wire.h
The two includes are esp_now.h and wifi.h
Where should I look now for changing the pin assignment?
Simply, include the wire.h library in your code:
Then, you can use the functions shown in the tutorial to use different I2C pins.