Skip to content

Commit

Permalink
Fix scanners.md
Browse files Browse the repository at this point in the history
  • Loading branch information
regicidalplutophage authored Dec 16, 2024
1 parent 9271a9a commit 664a1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/scanners.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class MyKeyboard(KMKKeyboard):
self.matrix = KeysScanner(
# require argument:
pins=_KEY_CFG,
# optional arguments with defaults:
value_when_pressed=False,
# optional arguments with defaults:
pull=True,
interval=0.02, # Matrix sampling interval in ms
debounce_threshold=None, # Number of samples needed to change state, values greater than 1 enable debouncing. Only applicable for CircuitPython >= 9.2.0
Expand All @@ -97,9 +97,9 @@ class MyKeyboard(KMKKeyboard):
data=board.GP1,
latch=board.GP2,
key_count=8,
value_when_pressed=False,
# optional arguments with defaults:
value_to_latch=True, # 74HC165: True, CD4021: False
value_when_pressed=False,
interval=0.02, # Matrix sampling interval in ms
debounce_threshold=None, # Number of samples needed to change state, values greater than 1 enable debouncing. Only applicable for CircuitPython >= 9.2.0
max_events=64
Expand Down

0 comments on commit 664a1a9

Please sign in to comment.