You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I connected the DS3231 to my Pico: SDA to pin 16, SCL to pin 17, GND to GND and VCC to VSYS.
I copied the example code in main.py and put the RTC_DS3231.py in a my_lib folder. I didn't change any code.
When i tried to run the code I got the error: ([Errno 5] EIO) and when i tried Settime() in the example code I got:
Traceback (most recent call last):
File "", line 13, in
File "my_lib/RTC_DS3231.py", line 26, in DS3231_SetTime
OSError: [Errno 5] EIO
I tried to run a I2C address scan and got 0x57, but when a changed the address it still got the same error massages.
Does someone know how to solve this problem and make it work like intended?
The text was updated successfully, but these errors were encountered:
Pretty sure the pin numbers refer to GPIO pin numbers. I've got mine connected up to device pins 11 and 12, GPIO 8 and 9 and I use this to initialize the RTC
rtc = RTC_DS3231.RTC(8,9,0,400000)
Try connecting to device pins 21 and 22 which are GPIO 16 and 17.
I connected the DS3231 to my Pico: SDA to pin 16, SCL to pin 17, GND to GND and VCC to VSYS.
I copied the example code in main.py and put the RTC_DS3231.py in a my_lib folder. I didn't change any code.
When i tried to run the code I got the error: ([Errno 5] EIO) and when i tried Settime() in the example code I got:
Traceback (most recent call last):
File "", line 13, in
File "my_lib/RTC_DS3231.py", line 26, in DS3231_SetTime
OSError: [Errno 5] EIO
I tried to run a I2C address scan and got 0x57, but when a changed the address it still got the same error massages.
Does someone know how to solve this problem and make it work like intended?
The text was updated successfully, but these errors were encountered: