use smbus2
This commit is contained in:
parent
c6ede034e2
commit
8e8d65bac7
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class I2CInterface:
|
||||||
class DevI2CInterface(I2CInterface):
|
class DevI2CInterface(I2CInterface):
|
||||||
def __init__(self, bus) -> None:
|
def __init__(self, bus) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
from smbus import SMBus, i2c_msg
|
from smbus2 import SMBus, i2c_msg
|
||||||
self.bus = SMBus(bus)
|
self.bus = SMBus(bus)
|
||||||
self.msg = i2c_msg
|
self.msg = i2c_msg
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue