diff --git a/boards/jpconstantineau/gridmx47/README.md b/boards/jpconstantineau/gridmx47/README.md index 0fe8a30..b85167c 100644 --- a/boards/jpconstantineau/gridmx47/README.md +++ b/boards/jpconstantineau/gridmx47/README.md @@ -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/) diff --git a/boards/jpconstantineau/gridmx47/kb.py b/boards/jpconstantineau/gridmx47/kb.py new file mode 100644 index 0000000..6e8974d --- /dev/null +++ b/boards/jpconstantineau/gridmx47/kb.py @@ -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