From 664a1a94159592cef0196afaba3aafd94c301771 Mon Sep 17 00:00:00 2001 From: "regicidal.plutophage" <36969337+regicidalplutophage@users.noreply.github.com> Date: Mon, 16 Dec 2024 03:44:46 +0300 Subject: [PATCH] Fix scanners.md --- docs/en/scanners.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/scanners.md b/docs/en/scanners.md index 7576b557a..2de0902e8 100644 --- a/docs/en/scanners.md +++ b/docs/en/scanners.md @@ -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 @@ -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