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