Update debounce docs

This commit is contained in:
Kyle Brown 2022-10-25 01:05:27 -07:00
parent 5032f1ee12
commit feb5c0392c

View File

@ -30,7 +30,7 @@ class MyKeyboard(KMKKeyboard):
row_pins=self.row_pins,
# optional arguments with defaults:
columns_to_anodes=DiodeOrientation.COL2ROW,
interval=0.02,
interval=0.02, # Debounce time in floating point seconds
max_events=64
)
@ -68,7 +68,7 @@ class MyKeyboard(KMKKeyboard):
# optional arguments with defaults:
value_when_pressed=False,
pull=True,
interval=0.02,
interval=0.02, # Debounce time in floating point seconds
max_events=64
)
```
@ -94,7 +94,7 @@ class MyKeyboard(KMKKeyboard):
# optional arguments with defaults:
value_to_latch=True, # 74HC165: True, CD4021: False
value_when_pressed=False,
interval=0.02,
interval=0.02, # Debounce time in floating point seconds
max_events=64
)
```