From c37170da564dd909ba15aedbb9569711b045d2ee Mon Sep 17 00:00:00 2001 From: iraytrace Date: Wed, 22 Dec 2021 14:19:23 -0500 Subject: [PATCH] Add specific example of setting row_pins/col_pins The example code at least needs to --- docs/Getting_Started.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/Getting_Started.md b/docs/Getting_Started.md index 3b0bd4f..da7fd0e 100644 --- a/docs/Getting_Started.md +++ b/docs/Getting_Started.md @@ -15,11 +15,8 @@ We are also providing a keyboard optimized version of CircuitPython (simplified 3. Unzip it and copy the KMK folder and the boot.py file at the root of the USB drive corresponding to your board (often appearing as CIRCUITPY) 4. Create a new *code.py* or *main.py* file in the same root directory (same level as boot.py) with the example content hereunder: - - ***IMPORTANT:*** adapt the GP0 / GP1 pins to your specific board !
- ``` print("Starting") @@ -43,6 +40,13 @@ if __name__ == '__main__': keyboard.go() ``` +For example, on the KB2040 the col_pins and row_pins might be: +``` +keyboard.col_pins = (board.D5,) +keyboard.row_pins = (board.D6,) +``` + + 5. With a wire / paperclip / whatever, connect GPIO 0 & GPIO 1 together (or the pins you chose for your boards) 6. If it prints a "A" (or a "Q" or ... depending on your keyboard layout), you're done!