09583aa7f7
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>
26 lines
382 B
Python
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)
|