Skip to content

Commit 30faf0a

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 91f09f9 commit 30faf0a

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
@@ -260,6 +260,7 @@ def _pin_mode_bulk_x(self, capacity, offset, pins, mode):
260260
self.write(_GPIO_BASE, _GPIO_DIRSET_BULK, cmd)
261261
elif mode == self.INPUT:
262262
self.write(_GPIO_BASE, _GPIO_DIRCLR_BULK, cmd)
263+
self.write(_GPIO_BASE, _GPIO_PULLENCLR, cmd)
263264

264265
elif mode == self.INPUT_PULLUP:
265266
self.write(_GPIO_BASE, _GPIO_DIRCLR_BULK, cmd)

0 commit comments

Comments
 (0)