Skip to content

Commit

Permalink
Isopad (KMKfw#908)
Browse files Browse the repository at this point in the history
* add isopad firmware
  • Loading branch information
bobdoah committed Nov 1, 2023
1 parent 2704432 commit 544ec9c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions boards/isopad/kb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Isopad pinout
# Credit: u/bomtarnes aka The Keyboard Magpie
import board

from kmk.kmk_keyboard import KMKKeyboard as _KMKeyboard
from kmk.quickpin.pro_micro.kb2040 import pinout as pins
from kmk.scanners.keypad import KeysScanner

# GPIO to key mapping - there's one key
# fmt: off
_KEY_CFG = [
pins[19]
]


# fmt: on
class KMKKeyboard(_KMKeyboard):
def __init__(self):
# create and register the scanner
self.matrix = KeysScanner(_KEY_CFG)
10 changes: 10 additions & 0 deletions boards/isopad/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from kb import KMKKeyboard

from kmk.keys import KC

Isopad = KMKKeyboard()

Isopad.keymap = [[KC.ENTER]]

if __name__ == '__main__':
Isopad.go()

0 comments on commit 544ec9c

Please sign in to comment.