forked from KMKfw/kmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add isopad firmware
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |