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)
|