Skip to content

Commit 959d013

Browse files
author
kirk-sfe
authored
fixed methods
1 parent 0475037 commit 959d013

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def runExample():
9494
print("\nSparkFun qwiic Keypad Example 1\n")
9595
myKeypad = qwiic_keypad.QwiicKeypad()
9696

97-
if myKeypad.isConnected() == False:
97+
if myKeypad.is_connected() == False:
9898
print("The Qwiic Keypad device isn't connected to the system. Please check your connection", \
9999
file=sys.stderr)
100100
return
@@ -105,8 +105,8 @@ def runExample():
105105
while True:
106106

107107
# necessary for keypad to pull button from stack to readable register
108-
myKeypad.updateFIFO()
109-
button = myKeypad.getButton()
108+
myKeypad.update_fifo()
109+
button = myKeypad.get_button()
110110

111111
if button == -1:
112112
print("No keypad detected")

0 commit comments

Comments
 (0)