Skip to content

Commit

Permalink
fixed Direction.INPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdr committed Mar 18, 2024
1 parent 9b1c73e commit 5dab43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trackball/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5dab43e

Please sign in to comment.