i2cdriver module API docs¶
The pumpkin_supmcu.i2cdriver module contains an implementations of the
I2CMaster for the following devices:
The I2CDriver Board as
I2CDriverMaster module API docs¶
- class pumpkin_supmcu.i2cdriver.I2CDriverMaster(port)¶
Class for I2CDriver as I2CMaster
- property device_speed: I2CBusSpeed¶
The device speed the I2C Bus is currently at.
- Return type
I2CBusSpeed
- get_bus_devices()¶
Gets the available I2C devices from the I2C bus on the I2CDriver and returns a list of device addresses
- read(addr, amount)¶
Starts an I2C transaction for the I2CDriver and reads amount bytes from the device at address addr on the I2C Bus. Stops the I2C Transaction after the read has finished.