2ccad46e26
* update modtap to holdtap
* Update links
* Revert "Update links"
This reverts commit 8d0cda7c5a
.
* updated docs links
update links in docs
* Update docs/en/Getting_Started.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/Getting_Started.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* rename modtap.md to holdtap.md
* Update Getting_Started.md
* Update main.py
* Update modtap.py
* Update modtap.py and add notice
* Update docs/en/porting_to_kmk.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/handwiring.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/contributing.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/contributing.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/ble_hid.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/Getting_Started.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/Getting_Started.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Update docs/en/kmkpython_vs_circuitpython.md
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
* Rename modtap.md to holdtap.md
* fixup
---------
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
37 lines
1014 B
Python
37 lines
1014 B
Python
# Ferris Sweep pinout translated from QMK repo
|
|
# CreditT: 2018-2020 ENDO Katsuhiro, David Philip Barr, Pierre Chevalier
|
|
|
|
import board
|
|
|
|
from storage import getmount
|
|
|
|
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
|
|
from kmk.quickpin.pro_micro.kb2040 import pinout as pins
|
|
from kmk.scanners.keypad import KeysScanner
|
|
|
|
# GPIO to key mapping - each line is a new row.
|
|
# fmt: off
|
|
_KEY_CFG_LEFT = [
|
|
pins[9], pins[16], pins[17], pins[18], pins[19],
|
|
pins[15], pins[14], pins[13], pins[12], pins[0],
|
|
pins[4], pins[5], pins[6], pins[7], pins[8],
|
|
pins[10], pins[11],
|
|
]
|
|
|
|
|
|
# fmt: on
|
|
|
|
class KMKKeyboard(_KMKKeyboard):
|
|
def __init__(self):
|
|
# create and register the scanner
|
|
self.matrix = KeysScanner(_KEY_CFG_LEFT)
|
|
|
|
# flake8: noqa
|
|
# fmt: off
|
|
coord_mapping = [
|
|
0, 1, 2, 3, 4, 21, 20, 19, 18, 17,
|
|
5, 6, 7, 8, 9, 26, 25, 24, 23, 22,
|
|
10, 11, 12, 13, 14, 31, 30, 29, 28, 27,
|
|
15, 16, 33, 32
|
|
]
|