Skip to content

Python library for the RV3028 Real Time Clock

License

Notifications You must be signed in to change notification settings

amahoneyLIT/rv3028-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RV3028 Real Time Clock Breakout

Build Status Coverage Status PyPi Package Python Versions

Note

This is just a Python library to interface with the RV3028 and does not install the RTC as a time source for Raspbian.

In order to set up as a RTC in Raspbian you will need to add something like the following to /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

Installing

Stable library from PyPi:

  • Just run sudo pip install rv3028

Latest/development library from GitHub:

  • git clone https://github.com/pimoroni/rv3028-python
  • cd rv3028-python
  • sudo ./install.sh

Requirements

This library depends upon smbus:

sudo apt install python-smbus   # Python 2
sudo apt install python3-smbus  # Python 3

About

Python library for the RV3028 Real Time Clock

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 88.2%
  • Makefile 8.1%
  • Shell 3.7%