Erriez / ErriezDS3231

DS3213 high precision RTC (Real Time Clock) library for Arduino
https://github.com/Erriez/ErriezArduinoLibrariesAndSketches
MIT License
22 stars 7 forks source link

How change SDA and SCL pin? #4

Closed mariocondesantos closed 2 years ago

mariocondesantos commented 2 years ago

Hi,

I can change SDA and SCL pin in code? I use ESP32 and have a conflit with LCD ST7796... tks

Erriez commented 2 years ago

Hi @mariocondesantos,

Thanks for using my library. You can change the ESP32 I2C pins in your sketch:

Wire.begin(SDA_PIN, SCL_PIN);
mariocondesantos commented 2 years ago

But change general I2C pinout in my Esp32 and my display stops working... My display use I2C also... image image

Erriez commented 2 years ago

Are the DS3231 examples up and running on your ESP32 board without using other devices? Make sure the DS3231 I2C pins uses different pins as they cannot be shared with a non I2C devices. Multiple I2C devices can be connected to the same I2C bus when each device has a unique address.

Erriez commented 2 years ago

Closing issue as ESP32 I2C pin configuration is beyond the scope of this DS3231 library.