diff --git a/i2c_interfaces.py b/i2c_interfaces.py index d7df5c2..4f48bf8 100644 --- a/i2c_interfaces.py +++ b/i2c_interfaces.py @@ -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