Makuna / Rtc

Arduino Library for RTCs, Ds1302, Ds1307, Ds3231, Ds3232, Ds3234 and Pcf8563/BM8563 with deep support. Please refer to the Wiki for more details. Please use the Github Discussions to ask questions as the GitHub Issues feature is used for bug tracking.
GNU Lesser General Public License v3.0
364 stars 128 forks source link

DS3231 i2c ESP32 #83

Closed Albertox0404 closed 5 years ago

Albertox0404 commented 5 years ago

I need to change the i2c pins to others since another device uses pin 22 to work, how can I change the pins of the ESP2 i2c to work with the DS3231? I am using the example "DS3231 Simple" that is included with the library I used this "Wire.begin (16, 17);" in the SETUP as you recommended for the ESP-01, but it does not work and returns erroneous information. This is what it returns:

RTC lost confidence in the DateTime! 85/165/2009 37:165: -0.25C

Thank you

Makuna commented 5 years ago

Please honor the request that questions be asked on gitter channel pointed at in the Readme, the Wiki, and the new issues template. RTC Library Gitter Channel

The ISSUES are for tracking known problems with this library, not a place for you to post your issues or ask questions.

What is an ESP2? Setting the pins as you mentions works. You have another issue. Make sure to either use the pins as defined by the hardware for your device, or if it allows, pins not used by other parts of your microcontroller. More than likely, its your battery. If you would like to continue and seek help, jump on gitter.