I2C Scanner Test
This program will verify that your RTC clock is connected correctly to your Raspberry Pi Pico.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
This will return a list of the I2C addresses found on your I2C Bus 0. If your DS3231 real-time clock has an address of 0x68 (hex) which is 104 decimal.
You will also see a second I2C address for the EEPROM which is 0x50 (hex) and 80 decimal. These numbers may vary if you purchased different versions of a real-time clock.
For details see the section on Real Time Clocks.