Skip to main content

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

MIT

Project details


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.6.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page