File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -695,6 +695,9 @@ def _rp2040_u2if_id(self) -> Optional[str]:
695
695
# Feather RP2040 CAN
696
696
if product == 0x8130 :
697
697
return boards .FEATHER_CAN_U2IF
698
+ # KB2040 Kee Board
699
+ if product == 0x0105 :
700
+ return boards .KB2040_U2IF
698
701
# Will only reach here if a device was added in chip.py but here.
699
702
raise RuntimeError ("RP2040_U2IF device was added to chip but not board." )
700
703
@@ -889,6 +892,7 @@ def lazily_generate_conditions():
889
892
yield self .board .MACROPAD_U2IF
890
893
yield self .board .QTPY_U2IF
891
894
yield self .board .QT2040_TRINKEY_U2IF
895
+ yield self .board .KB2040_U2IF
892
896
893
897
return any (condition for condition in lazily_generate_conditions ())
894
898
@@ -997,6 +1001,11 @@ def qt2040_trinkey_u2if(self) -> bool:
997
1001
"""Check whether the current board is a QT Py w/ u2if."""
998
1002
return self .id == boards .QT2040_TRINKEY_U2IF
999
1003
1004
+ @property
1005
+ def kb2040_u2if (self ) -> bool :
1006
+ """Check whether the current board is a KB2040 w/ u2if."""
1007
+ return self .id == boards .KB2040_U2IF
1008
+
1000
1009
@property
1001
1010
def binho_nova (self ) -> bool :
1002
1011
"""Check whether the current board is an BINHO NOVA."""
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ def id(
131
131
0x812C ,
132
132
0x812E ,
133
133
0x8130 ,
134
+ 0x0105 ,
134
135
)
135
136
):
136
137
self ._chip_id = chips .RP2040_U2IF
Original file line number Diff line number Diff line change 162
162
MACROPAD_U2IF = "MACROPAD_U2IF"
163
163
QTPY_U2IF = "QTPY_U2IF"
164
164
QT2040_TRINKEY_U2IF = "QT2040_TRINKEY_U2IF"
165
+ KB2040_U2IF = "KB2040_U2IF"
165
166
166
167
BINHO_NOVA = "BINHO_NOVA"
167
168
You can’t perform that action at this time.
0 commit comments