@@ -832,8 +832,8 @@ def _rp2040_u2if_id(self) -> Optional[str]:
832
832
# KB2040 Kee Board
833
833
if product == 0x0105 :
834
834
return boards .KB2040_U2IF
835
- if vendor == 0x2E8A and product == 0x111F :
836
- return boards .WAVESHARE_RP2040_ONE_U2IF
835
+ if vendor == 0x2E8A and product == 0x103A :
836
+ return boards .RP2040_ONE_U2IF
837
837
# Will only reach here if a device was added in chip.py but here.
838
838
raise RuntimeError ("RP2040_U2IF device was added to chip but not board." )
839
839
@@ -1084,6 +1084,7 @@ def lazily_generate_conditions():
1084
1084
yield self .board .QTPY_U2IF
1085
1085
yield self .board .QT2040_TRINKEY_U2IF
1086
1086
yield self .board .KB2040_U2IF
1087
+ yield self .board .RP2040_ONE_U2IF
1087
1088
yield self .board .OS_AGNOSTIC_BOARD
1088
1089
1089
1090
return any (condition for condition in lazily_generate_conditions ())
@@ -1212,6 +1213,10 @@ def kb2040_u2if(self) -> bool:
1212
1213
return self .id == boards .KB2040_U2IF
1213
1214
1214
1215
@property
1216
+ def rp2040_one_u2if (self ) -> bool :
1217
+ """Check whether the current board is an RP2040 One w/ u2if."""
1218
+ return self .id == boards .RP2040_ONE_U2IF
1219
+ @property
1215
1220
def binho_nova (self ) -> bool :
1216
1221
"""Check whether the current board is an BINHO NOVA."""
1217
1222
return self .id == boards .BINHO_NOVA
0 commit comments