diff --git a/controller/python/controller.py b/controller/python/controller.py index af426b0c3c11b655fb9883feab0f907edb962b25..dea0eeb029ab16930cdac665b02db9eb208ea18f 100644 --- a/controller/python/controller.py +++ b/controller/python/controller.py @@ -25,11 +25,11 @@ class Controller: RESET = 0xE0 DEVICE_ID = 0xF0 - def __init__(self, i2cbus=8): + def __init__(self, i2c_bus=8): import smbus - self.I2C_BUS = i2cbus - self.i2c = smbus.SMBus(self.I2C_BUS) + self.i2c_bus = i2c_bus + self.i2c = smbus.SMBus(self.i2c_bus) self.check_firmware_version()