-
-
Save ronnyandre/fca548c2ff9da58b89366ecd773bde0f to your computer and use it in GitHub Desktop.
KMK circuitpython macropad firmware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
from kmk.kmk_keyboard import KMKKeyboard | |
from kmk.matrix import DiodeOrientation | |
from kmk.keys import KC | |
keyboard = KMKKeyboard() | |
keyboard.col_pins = (board.GP2, board.GP3, board.GP4, board.GP5) | |
keyboard.row_pins = ( | |
board.GP21, | |
board.GP20, | |
) | |
keyboard.diode_orientation = DiodeOrientation.COLUMNS | |
#keyboard.debug_enabled = True | |
keyboard.keymap = [ | |
[KC.F13, KC.F14, KC.F15, KC.F16, KC.F17, KC.F18, KC.F19, KC.F20], | |
] | |
if __name__ == '__main__': | |
keyboard.go() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment