Skip to content

Commit dcf1613

Browse files
committed
put back the pullups
1 parent bab1686 commit dcf1613

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_character_lcd/character_lcd_rgb_i2c.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, i2c, columns, lines):
8484
on the display.
8585
"""
8686
from adafruit_mcp230xx.mcp23017 import MCP23017
87-
mcp = MCP2317(i2c)
87+
mcp = MCP23017(i2c)
8888

8989
self._left_button = mcp.get_pin(4)
9090
self._up_button = mcp.get_pin(3)
@@ -95,6 +95,9 @@ def __init__(self, i2c, columns, lines):
9595
self._buttons = [self._left_button, self._up_button, self._down_button, self._right_button,
9696
self._select_button]
9797

98+
for pin in self._buttons:
99+
pin.switch_to_input(pull=digitalio.Pull.UP)
100+
98101
super().__init__(mcp.get_pin(15),
99102
mcp.get_pin(13),
100103
mcp.get_pin(12),

0 commit comments

Comments
 (0)