Raspberry Pi - I2C Communication
What will be the output of this code snippet using
smbus2 if the device at address 0x50 returns 0xAB for register 0x01?from smbus2 import SMBus
with SMBus(1) as bus:
data = bus.read_byte_data(0x50, 0x01)
print(hex(data))