read()#

I2CInterface.read(
peripheral: str,
register_alias: str,
field: str = '',
**kwargs,
) → Measurement[source]#

Read a register (or one of its named fields) on peripheral.

With field, only the named bit field is extracted (masked and shifted). Raises ValueError if peripheral is not a register-based device.