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 fdd5fdd commit 5269340
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/en/scanners.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class MyKeyboard(KMKKeyboard):
row_pins=self.row_pins,
# optional arguments with defaults:
columns_to_anodes=DiodeOrientation.COL2ROW,
interval=0.02, # How often the matrix is sampled
debounce_threshold=1, # Number of samples needed to change state
interval=0.01, # How often the matrix is sampled
debounce_threshold=2, # Number of samples needed to change state
max_events=64
)

Expand Down Expand Up @@ -69,8 +69,8 @@ class MyKeyboard(KMKKeyboard):
# optional arguments with defaults:
value_when_pressed=False,
pull=True,
interval=0.02, # How often the matrix is sampled
debounce_threshold=1, # Number of samples needed to change state
interval=0.01, # How often the matrix is sampled
debounce_threshold=2, # Number of samples needed to change state
max_events=64
)
```
Expand All @@ -96,8 +96,8 @@ class MyKeyboard(KMKKeyboard):
# optional arguments with defaults:
value_to_latch=True, # 74HC165: True, CD4021: False
value_when_pressed=False,
interval=0.02, # How often the matrix is sampled
debounce_threshold=1, # Number of samples needed to change state
interval=0.01, # How often the matrix is sampled
debounce_threshold=2, # Number of samples needed to change state
max_events=64
)
```
Expand Down

0 comments on commit 5269340

Please sign in to comment.