Skip to content

Commit 26e8726

Browse files
authored
Update README.md
1 parent faf6cf1 commit 26e8726

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
@@ -39,7 +39,7 @@ keypad = Keypad(scl=scl_pin, sdo=sdo_pin, inputs=16, multi=False)
3939
while True:
4040
print(keypad.read())
4141
# return a index number like 15 in single mode
42-
# return a list like [0, 1, 14, 15] in multiple mode
42+
# return a list like [0, 2, 11, 15] in multiple mode
4343
```
4444

4545
<b>input</b> parameter:
@@ -58,11 +58,11 @@ In multiple mode keypad.read() will return a list containing all the indexes of
5858

5959
If the TTP229-BSF is configured to multiple mode, read it in single mode will return the lowest index of all pressed keys. Read in multiple mode for a keypad configured in single mode, you'll get a list containing only one key index if any key is pressed.
6060

61-
There's also a <b>raw</b> parameter, default False. When set as True, keypad.read() will return the raw 8 or 16 key list indicating all keys' status (1=not pressed, 0=pressed).
61+
There's also a <b>raw</b> parameter, default False. When set as True, keypad.read() will return the raw 8 or 16 key list indicating all keys' status (from key 0 to 15; value 1 = not pressed, 0 = pressed).
6262

6363
```python
6464
keypad = Keypad(scl=scl_pin, sdo=sdo_pin, inputs=16, multi=False, raw=True)
65-
# return a list like [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
65+
# return a list like [0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0]
6666

6767
while True:
6868
print(keypad.read())

0 commit comments

Comments
 (0)