Files
pi_tools/PiRTC/install.sh

14 lines
222 B
Bash
Executable File

#!/bin/sh
# software
sudo apt-get install python-smbus i2c-tool
# check
sudo i2cdetect -y 1
# config
cp /boot/config.txt /boot/config.bak
echo "" >> /boot/config.txt
echo "dtoverlay=i2c-rtc,ds3231" >> /boot/config.txt