After having installed KMK on the previous page, you're going to want to click 'Download Project Bundle' on the file below. Unzip the file, copy to your CIRCUITPY drive and rename to and copy it to the CIRCUITPY drive as well.

# SPDX-FileCopyrightText: 2022 Eva Herrada for Adafruit Industries
# SPDX-License-Identifier: MIT

import board

from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.matrix import DiodeOrientation

class KMKKeyboard(_KMKKeyboard):
    row_pins = (board.D5, board.D6, board.D7, board.D8, board.D9)
    col_pins = (
    diode_orientation = DiodeOrientation.COLUMNS
    i2c = board.I2C

Change line from kmk.matrix import DiodeOrientation to kmk.scanners import DiodeOrientation per latest documentation

After you've copied everything over, your CIRCUITPY drive should look something like this.

Key Mapping

The default keymap for this macropad is the numpad keymap.

At this point, the keyboard should just work when you hit the keys. Feel free to mess around with the key maps. KMK has some good documentation on this process.

This guide was first published on Feb 01, 2022. It was last updated on Jul 22, 2024.

This page (Setting Up KMK) was last updated on Jul 22, 2024.

Text editor powered by tinymce.