diff --git a/trackball/__init__.py b/trackball/__init__.py index 2fd396b..9afe4aa 100644 --- a/trackball/__init__.py +++ b/trackball/__init__.py @@ -58,7 +58,7 @@ def __init__(self, address=I2C_ADDRESS, i2c_bus=1, interrupt_pin=None, timeout=5 gpiochip = gpiodevice.find_chip_by_platform() self._interrupt_pin = gpiochip.line_offset_from_id(self._interrupt_pin) self._gpio = gpiochip.request_lines(consumer="trackball", config={ - self._interrupt_pin: gpiod.LineSettings(direction=Direction.IN, bias=Bias.DISABLED, output_value=Value.INACTIVE) + self._interrupt_pin: gpiod.LineSettings(direction=Direction.INPUT, bias=Bias.DISABLED, output_value=Value.INACTIVE) }) self.enable_interrupt()