Esta libreria se conecta a un arduino mediante protocolo I2C, donde se pueden ingresar comandos para solicitar datos tipo float al arduino
Project description
PowerI2c
PowerI2c es una libreria que establece una conexion I2C entre una raspberry pi 4 y un arduino, donde se pueden enviar comandos al arduino y recibir datos de tipo float.
Installation
Use the package manager pip to install foobar.
pip install PowerI2C
Usage
La libreria consta de 4 comandos, init accede a un menu desde el cual se pueden obtener los valores de voltaje, corriente o potencia y los 3 comandos faltantes imprimen por consola los valores de voltaje, corriente o potencia.
from PowerI2C import PowerI2C
PowerI2C.init() #Ejecuta el codigo tipo menu
PowerI2C.getVoltage()
PowerI2C.getCurrent()
PowerI2C.getPower()
Contributing
Las contribuciones son bienvenidas.
License
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
PowerI2C-0.0.5.tar.gz
(2.2 kB
view hashes)