pumpkin-supmcu documentation¶
linux module API docs¶
The pumpkin_supmcu.linux module contains an implementations of the
I2CMaster
for the following devices:
The SMBus2 Package as
I2CLinuxMaster module API docs¶
- class pumpkin_supmcu.linux.I2CLinuxMaster(port)¶
Class to implement I2C in Linux
- property device_speed: pumpkin_supmcu.i2c.master.I2CBusSpeed¶
The default I2C baudrate
- Return type
I2CBusSpeed
- get_bus_devices()¶
Gets the available I2C devices from the selected I2C bus and returns a list of device addresses
- read(addr, amount)¶
Reads amount bytes of data from address addr
The pumpkin-supmcu-smbus
package has the following functionality:
- Leverages business logic found in pumpkin-supmcu.
Please read
pumpkin-supmcu
documentation for usage, this is the implementation package for I2C Driver
Interfaces
pumpkin-supmcu
package with the smbus2 package
The documentation for the pumpkin_supmcu
package can be found here.