Files
pi_tools/Projects/PiRTC/install.sh
2021-05-29 19:43:42 -04:00

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