I am trying to get the Qwiic Real Time Clock Module by Sparkfun working. I am using an esp8266. The clock works fine with the standard I2C pinouts, but when I change it with Wire.begin(2, 3);
, it suddenly doesn't work anymore.
I've tried changing the pinouts to other examples (Wire.begin(0, 1);
etc.) but nothing semes to work. I checked the wiring a ton of times and I think it is correct.
As code, I am just using a modified example written by Sparkfun.
This is my code:
void setup() {
Wire.begin(2 , 3);
Serial.begin(9600);
Serial.println("Read Time from RTC Example");
while(1) {
if (rtc.begin() == false) {
Serial.println("Something went wrong, check wiring");
} else
break;
delay(1000);
}
if (rtc.setToCompilerTime() == false) {
Serial.println("Something went wrong setting the time");
}
Serial.println("RTC online!");
}
void loop() { }
When i run the Program, it just stays in the while loop and never progresses further.