added kb.py for gridmx47

This commit is contained in:
Pierre Constantineau 2021-10-26 17:26:11 -06:00 committed by Josh Klar
parent 0a81876eae
commit 899b95e586
2 changed files with 25 additions and 1 deletions

View File

@ -2,7 +2,6 @@
![GridMX47](https://cdn.tindiemedia.com/images/resize/NGAMssTBh5dFIstnXwnvB0-4Fik=/p/fit-in/653x435/filters:fill(fff)/i/556481/products/2021-10-24T22%3A39%3A25.468Z-PXL_20211024_222435647.jpg?1635089973)
47 Keys RGB Keyboard inspired from OLKB's Planck with a Raspberry Pi Pico
kb.py is designed to work with the [Pico CircuitPython UF2](https://circuitpython.org/board/raspberry_pi_pico/)

View File

@ -0,0 +1,25 @@
import board
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.matrix import DiodeOrientation
class KMKKeyboard(_KMKKeyboard):
col_pins = (
board.GP11,
board.GP12,
board.GP13,
board.GP14,
board.GP15,
board.GP19,
board.GP20,
board.GP21,
board.GP22,
board.GP26,
board.GP27,
board.GP28,
)
row_pins = (board.GP7, board.GP8, board.GP9, board.GP10)
diode_orientation = DiodeOrientation.COL2ROW
rgb_pixel_pin = board.GP6
rgb_num_pixels = 47