Add specific example of setting row_pins/col_pins
The example code at least needs to
This commit is contained in:
parent
3258e76ba4
commit
c37170da56
@ -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)
|
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:
|
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 ! <br>
|
***IMPORTANT:*** adapt the GP0 / GP1 pins to your specific board ! <br>
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
print("Starting")
|
print("Starting")
|
||||||
|
|
||||||
@ -43,6 +40,13 @@ if __name__ == '__main__':
|
|||||||
keyboard.go()
|
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)
|
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!
|
6. If it prints a "A" (or a "Q" or ... depending on your keyboard layout), you're done!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user