Raspberry Pi - I2C Communication
Identify the error in this code snippet for writing to an I2C device:
from smbus2 import SMBus bus = SMBus(1) bus.write_byte_data(0x30, 0x01)
from smbus2 import SMBus bus = SMBus(1) bus.write_byte_data(0x30, 0x01)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions