anavi-arrows: Add ANAVI Arrows
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>
This commit is contained in:
20
boards/anavi/anavi-arrows/arrows.py
Normal file
20
boards/anavi/anavi-arrows/arrows.py
Normal file
@@ -0,0 +1,20 @@
|
||||
'''
|
||||
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])
|
Reference in New Issue
Block a user