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