Added may pad files
This commit is contained in:
parent
16f57e76e1
commit
8417a851c9
2 changed files with 38 additions and 0 deletions
19
may_pad/kb.py
Normal file
19
may_pad/kb.py
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# SPDX-FileCopyrightText: 2022 Eva Herrada for Adafruit Industries
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
import board
|
||||||
|
|
||||||
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
||||||
|
from kmk.matrix import DiodeOrientation
|
||||||
|
|
||||||
|
|
||||||
|
class KMKKeyboard(_KMKKeyboard):
|
||||||
|
row_pins = (board.D5, board.D6, board.D7, board.D8, board.D9)
|
||||||
|
col_pins = (
|
||||||
|
board.A1,
|
||||||
|
board.A0,
|
||||||
|
board.SCK,
|
||||||
|
board.MISO,
|
||||||
|
)
|
||||||
|
diode_orientation = DiodeOrientation.COLUMNS
|
||||||
|
i2c = board.I2C
|
||||||
19
may_pad/main.py
Normal file
19
may_pad/main.py
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# SPDX-FileCopyrightText: 2022 Eva Herrada for Adafruit Industries
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
import board
|
||||||
|
|
||||||
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
||||||
|
from kmk.matrix import DiodeOrientation
|
||||||
|
|
||||||
|
|
||||||
|
class KMKKeyboard(_KMKKeyboard):
|
||||||
|
row_pins = (board.D5, board.D6, board.D7, board.D8, board.D9)
|
||||||
|
col_pins = (
|
||||||
|
board.A1,
|
||||||
|
board.A0,
|
||||||
|
board.SCK,
|
||||||
|
board.MISO,
|
||||||
|
)
|
||||||
|
diode_orientation = DiodeOrientation.COLUMNS
|
||||||
|
i2c = board.I2C
|
||||||
Loading…
Reference in a new issue