i2c Extensions For Telemetrix Clients
Project description
Telemetrix i2c Extensions
This repository contains i2c extension libraries for the Telemetrix project.
To install using pypi, make sure that you have pip installed on your computer and for Linux and Mac type:
sudo pip3 install telemetrix-extensions
For Windows type:
pip install telemetrix-extensions
You can read about i2c support here.
Each library consists of two classes, one to handle non-asyncio applications and the other to support asyncio applications.
There are no changes required on the Telemetrix servers.
Because the Telemetrix i2c API is consistent across all Telemetrix clients, to convert an application from one hardware platform to another, only one or two lines need to be modified.
For example, to convert the telemetrix_pca.py example to run on an ESP8266, only the Telemetrix client instantiation line needed to be modified
From:
# create a telemetrix instance
the_board = telemetrix.Telemetrix()
To:
# create a telemetrix instance
# Change the ip address to match the ip address of your nodemcu
the_board = telemetrix.Telemetrix(ip_address='192.168.2.170')
Both asyncio and non-asyncio library classes are available.
Currently supported devices:
- PCA9685 Servo Driver
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
File details
Details for the file telemetrix-extensions-1.0.tar.gz
.
File metadata
- Download URL: telemetrix-extensions-1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39cb8728821ecc485933c934d0e796e7b9e205d40d815b6ea7905cced49d0d3 |
|
MD5 | 83d08525d4e19483d4532e7b5c01b73f |
|
BLAKE2b-256 | 4e917a1b7ca55367884cd825f3db40789645615dcb9a1c92f2160c23073f477e |
File details
Details for the file telemetrix_extensions-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: telemetrix_extensions-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b78933ab20d47e702cf2216437e4933ca767401aea4ba1be0c3d72eb799521 |
|
MD5 | be57d0b2d337cde2cf19934b9a481be2 |
|
BLAKE2b-256 | 79707ae892df9ce6ee1ad5d54747324590114a7b700a52edb5d3e58838c5bc05 |