kmk_firmware/boards/anavi/knobs3/anaviknob.py
Leon Anavi 09583aa7f7 anavi/knobs3: Add ANAVI Knobs 3
Add support for ANAVI Knobs 3: an open source programmable mini
mechanical keyboard with 3 rotary encoders and Seeed XIAO RP2040.
This is open source hardware designed with KiCad.

Signed-off-by: Leon Anavi <leon@anavi.org>
2022-05-10 16:31:16 -07:00

26 lines
382 B
Python

'''
KMK keyboard for ANAVI Knobs 3
'''
import board
from kmk.kmk_keyboard import KMKKeyboard
from kmk.scanners.keypad import KeysScanner
# fmt: off
_KEY_CFG = [
board.D0,
board.D3,
board.D6
]
# fmt: on
class AnaviKnob(KMKKeyboard):
'''
Default keyboard config for the Keybow2040.
'''
def __init__(self):
self.matrix = KeysScanner(_KEY_CFG)