Skip to content

Commit 8417a85

Browse files
committed
Added may pad files
1 parent 16f57e7 commit 8417a85

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

may_pad/kb.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-FileCopyrightText: 2022 Eva Herrada for Adafruit Industries
2+
# SPDX-License-Identifier: MIT
3+
4+
import board
5+
6+
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
7+
from kmk.matrix import DiodeOrientation
8+
9+
10+
class KMKKeyboard(_KMKKeyboard):
11+
row_pins = (board.D5, board.D6, board.D7, board.D8, board.D9)
12+
col_pins = (
13+
board.A1,
14+
board.A0,
15+
board.SCK,
16+
board.MISO,
17+
)
18+
diode_orientation = DiodeOrientation.COLUMNS
19+
i2c = board.I2C

may_pad/main.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-FileCopyrightText: 2022 Eva Herrada for Adafruit Industries
2+
# SPDX-License-Identifier: MIT
3+
4+
import board
5+
6+
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
7+
from kmk.matrix import DiodeOrientation
8+
9+
10+
class KMKKeyboard(_KMKKeyboard):
11+
row_pins = (board.D5, board.D6, board.D7, board.D8, board.D9)
12+
col_pins = (
13+
board.A1,
14+
board.A0,
15+
board.SCK,
16+
board.MISO,
17+
)
18+
diode_orientation = DiodeOrientation.COLUMNS
19+
i2c = board.I2C

0 commit comments

Comments
 (0)