Changes

Jump to navigation Jump to search

X680

181 bytes added, 11:55, 7 August 2023
Firstly, insert the ```C1220``` button battery. run the following command in web terminal window:
<pre>
rw
sudo nano /boot/config.txt
#Then change the line: dtoverlay=i2c-rtc,pcf8563 to dtoverlay=i2c-rtc,ds1307
#Test RTC#Display the current time of the Raspberry Pi1. switch to 'root' userdate su root#Write then type the password, and the time of Raspberry Pi to DS1307reboot before next stepsudo hwclock -wdefault password is 'root' also.
#Read 2. Switch OS to writable mode rw3. Edit the /boot/config.txt file, and change line 'dtoverlay=i2c-rtc,pcf8563' to 'dtoverlay=i2c-rtcds1307' (due to use the different RTC chip). sudo nano /boot/config.txtThen save & '''reboot''' the device; 4.Test & setting RTC, write&read the time of Raspberry Pi to RTC DS1307 date sudo hwclock -w sudo hwclock -r 5. Swith OS to readonly mode ro</pre>
===Enable OLED display===

Navigation menu