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.clock)
# set time on RTC
rtc.clock = 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file frico-rtc-0.0.2.tar.gz.
File metadata
- Download URL: frico-rtc-0.0.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb4c7875c6d83f158d718ffc28553d1f5df2268031eb2daa76fd4629e9c3396d
|
|
| MD5 |
f5f4a5d8e5c956f73c81552911778b7b
|
|
| BLAKE2b-256 |
458b7955f0917715226537ce663c650926b783f1f8a2c12330d56f98c833e038
|
File details
Details for the file frico_rtc-0.0.2-py3-none-any.whl.
File metadata
- Download URL: frico_rtc-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
307b743cd08de3a6b955fd79c2369267b2825f970023a1415a082a1874bc59c2
|
|
| MD5 |
8f5f2e7954caa447253ea8838b379416
|
|
| BLAKE2b-256 |
c96c1c9fc54a030d45498d2f039400196569f4f9e9d617958ab7759412293c35
|