use smbus2

This commit is contained in:
Patrick Moessler 2022-01-09 21:08:36 +01:00
parent c6ede034e2
commit 8e8d65bac7

View file

@ -30,7 +30,7 @@ class I2CInterface:
class DevI2CInterface(I2CInterface):
def __init__(self, bus) -> None:
super().__init__()
from smbus import SMBus, i2c_msg
from smbus2 import SMBus, i2c_msg
self.bus = SMBus(bus)
self.msg = i2c_msg