| name | i2c input |
| version | v2.0.1 |
| docker image | beetaone/i2c-input |
| tags | Python, Flask, Docker, beetaone |
| authors | Ghassen barbouchi |
This module mounts a I2C slave device and reads its data periodically.
The following module configurations can be provided in a data service designer section on beetaone platform:
| Name | Environment Variables | Type | Description |
|---|---|---|---|
| I2C device path | I2C_INTERFACE_PATH | string | Local path to I2C device |
| I2C interface number | I2C_INTERFACE_NUMBER | integer | The number of the I2C interface. Example : the number of this interface "/dev/i2c-1" is 1 |
| Data Type | DATA_TYPE | string | The data type of incoming data: 'byte' or 'word' |
| Slave Address | SLAVE_ADDR | integer | Example : 10 (in hex '0xa') |
| Offset | OFFSET | integer | The address (offset) inside the EEPROM |
| Polling Period | PERIOD | integer | The period between every two successives data receptions |
Other features required for establishing the inter-container communication between modules in a data service are set by beetaone agent.
| Environment Variables | type | Description |
|---|---|---|
| MODULE_NAME | string | Name of the module |
| MODULE_TYPE | string | Type of the module (Input, Processing, Output) |
| EGRESS_URLS | string | HTTP ReST endpoint for the next module |
requests==2.27.1
smbus2
Output of this module is:
byte example :
{"i2cData": 119}
word example :
{"i2cData": 65481}
Content type
Image
Digest
sha256:3d346c71f…
Size
48.8 MB
Last updated
almost 2 years ago
docker pull beetaone/i2c-input:v2.0.1