Reputation: 151
I'm trying to connect an E-paper display and an RTC module on an esp32 via I2C. However, my esp32 board doesn't have a pin 21, so I have to set another pin. It's also worth mentioning that I'm using the Arduino IDE to program the ESP
I tried changing the pins like this on setup:
Wire.begin(12,14,100000);
But the pins didn't change
This is the link to the code
Thank you in advance.
Upvotes: 1
Views: 8617
Reputation: 151
I solved my problem, hopefully, someone finds the experience useful.
Inspect libraries that may be using the Wire library in your project they may be defining their own pins and such, overriding your choice.
A useful tutorial is here it also contains this function to scan for i2c devices
Upvotes: 4