Skip to content

Commit

Permalink
Update scanners.md
Browse files Browse the repository at this point in the history
  • Loading branch information
regicidalplutophage authored Nov 7, 2024
1 parent a371c85 commit b7e41f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/en/scanners.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class MyKeyboard(KMKKeyboard):
# optional arguments with defaults:
value_when_pressed=False,
pull=True,
interval=0.02, # Debounce time in floating point seconds
interval=0.02, # How often the matrix is sampled
debounce_threshold=1, # Number of samples needed to change state
max_events=64
)
```
Expand All @@ -95,7 +96,8 @@ class MyKeyboard(KMKKeyboard):
# optional arguments with defaults:
value_to_latch=True, # 74HC165: True, CD4021: False
value_when_pressed=False,
interval=0.02, # Debounce time in floating point seconds
interval=0.02, # How often the matrix is sampled
debounce_threshold=1, # Number of samples needed to change state
max_events=64
)
```
Expand Down

0 comments on commit b7e41f5

Please sign in to comment.