Python interface to Dallas/Maxim DS series RTCs (and others) using Frico
Project description
Frico RTCs
Interface to the Dallas/Maxim DS-series RTC devices using the Frico framework. Currently supports the DS3231/MAX31328, with the DS1307 and DS1337 to come, among others.
Installation
You can download and install the package via pip:
python3 -m pip install frico-rtc
To contribute, use the provided Makefile to set up a development environment:
git clone git@github.com:mmangus/frico-rtc.git &&\
cd frico-rtc &&\
make
Run make test
to validate changes (or use the commit hooks).
Usage
from datetime import datetime
from frico_rtc.devices import DS3231
rtc = DS3231()
# read time from RTC
print(rtc.time)
# set time on RTC
rtc.time = datetime.now()
# check alarm config
print(rtc.alarm1config)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
frico-rtc-0.0.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for frico_rtc-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 162eb1f37ac1d06c33bc3318155587618e502b7c96b7db8e1d96b12c06a76e5f |
|
MD5 | 492d13be0da16a6435af8da8c6c04e10 |
|
BLAKE2b-256 | a0e1dccad888f46625abec0a125c9f25d8ecec008528d9e4c6beca0d06b33c14 |