Raspberry Pi - I2C Communication
What will be the output of the following Python code snippet on Raspberry Pi when writing to an I2C device?
from smbus2 import SMBus
bus = SMBus(1)
try:
bus.write_byte_data(0x50, 0x01, 0xFF)
print("Write successful")
except Exception as e:
print(f"Error: {e}")
bus.close()