Passes tests

This commit is contained in:
Kyle Brown 2022-10-02 09:36:41 -07:00 committed by xs5871
parent d965a5c3e8
commit 711114ad30

View File

@ -41,9 +41,9 @@ from kmk.extensions.rgb import RGB, AnimationModes
from kmk.kmk_keyboard import KMKKeyboard
from kmk.scanners.keypad import KeysScanner
# fmt: off
def raspi_pins():
return [
board.D20, board.D16, board.D26,
@ -52,14 +52,15 @@ def raspi_pins():
board.D17, board.D27, board.D23,
]
def rp2040_pins():
return [
board.GP7, board.GP8, board.GP27,
board.GP9, board.GP26, board.GP10,
board.GP11, board.GP18, board.GP12,
board.GP11, board.GP18, board.GP12,
board.GP16, board.GP17, board.GP14
]
def itsybitsy_pins():
return [
@ -67,14 +68,15 @@ def itsybitsy_pins():
board.D10, board.D9, board.D7,
board.A5, board.A4, board.A3,
board.A2, board.A1, board.A0,
]
]
# fmt: on
def isPi():
return sys.platform == 'BROADCOM'
def isRP2040():
return sys.platform == 'RP2040'