rv3028 python
Version 0.0.5
这只是与RV3028接口的Python库,并且不安装RTC作为Raspbian的时间来源。
为了在Raspbian中设置为RTC,您需要将以下内容添加到/boot/config.txt :
dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=1
More information is available in the i2c-rtc dtoverlay documentation: https://github.com/raspberrypi/linux/blob/0d72d83ec92acda1e8cbad0d4213a5ec2b3f2e1b/arch/arm/boot/dts/overlays/README#L1079
PYPI的稳定图书馆:
python3 -m pip install rv3028GitHub的最新/开发库:
git clone https://github.com/pimoroni/rv3028-pythoncd rv3028-pythonsudo ./install.sh --unstable该库取决于smbus:
sudo apt install python-smbus # Python 2
sudo apt install python3-smbus # Python 3