Real Time Clock setup
- Enable
i2c
inraspi-config
- Add
dtoverlay=i2c-rtc,ds1307
to/boot/config.txt
- Check system date is correct, update if necessary
- Set RTC from system date with
sudo hwclock -w
- Read RTC date with
sudo hwclock -r
i2c
in raspi-config
dtoverlay=i2c-rtc,ds1307
to /boot/config.txt
sudo hwclock -w
sudo hwclock -r