Skip to content

Commit 20fb91a

Browse files
committed
seesaw: Clear pull-ups when setting mode to INPUT
.. pull-ups are enabled with INPUT_PULLUP, INPUT_PULLDOWN and would otherwise never be disabled
1 parent 8f92035 commit 20fb91a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_seesaw/seesaw.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ def _pin_mode_bulk_x(self, capacity, offset, pins, mode):
277277
self.write(_GPIO_BASE, _GPIO_DIRSET_BULK, cmd)
278278
elif mode == self.INPUT:
279279
self.write(_GPIO_BASE, _GPIO_DIRCLR_BULK, cmd)
280+
self.write(_GPIO_BASE, _GPIO_PULLENCLR, cmd)
280281

281282
elif mode == self.INPUT_PULLUP:
282283
self.write(_GPIO_BASE, _GPIO_DIRCLR_BULK, cmd)

0 commit comments

Comments
 (0)