| 12345678910111213 |
- from robot_control.src.api.i2c_handler import I2C
- from time import sleep
- # Initialize with multiple channels (1 through 4)
- i2c = I2C([3, 4])
- i2c.initialize()
- while(1):
- sleep(1)
- readings = i2c.read()
- for channel, value in readings.items():
- print(f"Channel {channel}: {value}")
|