d8867004ff
Add support for ANAVI Arrows: an open source programmable mini hot-swappable mechanical keyboard with 4 keys, a rotary encoder, mini OLED I2C yellow-blue display and Seeed XIAO RP2040. This is an open source hardware device designed with KiCad. Signed-off-by: Leon Anavi <leon@anavi.org>
21 lines
493 B
Python
21 lines
493 B
Python
'''
|
|
KMK keyboard for ANAVI Arrows
|
|
|
|
This is a macro pad with 4 mechanical switches based on the RP2040. Each key is
|
|
attached to a single GPIO, so the KMK matrix scanner needs to be overridden.
|
|
'''
|
|
|
|
import board
|
|
|
|
from kmk.kmk_keyboard import KMKKeyboard
|
|
from kmk.scanners.keypad import KeysScanner
|
|
|
|
|
|
class AnaviArrows(KMKKeyboard):
|
|
'''
|
|
Default keyboard config for ANAVI Arrows.
|
|
'''
|
|
|
|
def __init__(self):
|
|
self.matrix = KeysScanner([board.D1, board.D2, board.D3, board.D6])
|