@@ -648,6 +648,12 @@ def _rp2040_u2if_id(self) -> Optional[str]:
648
648
# Feather RP2040 ThinkInk
649
649
if product == 0x812C :
650
650
return boards .FEATHER_EPD_U2IF
651
+ # Feather RP2040 RFM
652
+ if product == 0x812E :
653
+ return boards .FEATHER_RFM_U2IF
654
+ # Feather RP2040 CAN
655
+ if product == 0x8130 :
656
+ return boards .FEATHER_CAN_U2IF
651
657
# Will only reach here if a device was added in chip.py but here.
652
658
raise RuntimeError ("RP2040_U2IF device was added to chip but not board." )
653
659
@@ -830,7 +836,9 @@ def lazily_generate_conditions():
830
836
yield self .board .GREATFET_ONE
831
837
yield self .board .PICO_U2IF
832
838
yield self .board .FEATHER_U2IF
839
+ yield self .board .FEATHER_CAN_U2IF
833
840
yield self .board .FEATHER_EPD_U2IF
841
+ yield self .board .FEATHER_RFM_U2IF
834
842
yield self .board .ITSYBITY_U2IF
835
843
yield self .board .MACROPAD_U2IF
836
844
yield self .board .QTPY_U2IF
@@ -907,11 +915,21 @@ def feather_u2if(self) -> bool:
907
915
"""Check whether the current board is a Feather RP2040 w/ u2if."""
908
916
return self .id == boards .FEATHER_U2IF
909
917
918
+ @property
919
+ def feather_can_u2if (self ) -> bool :
920
+ """Check whether the current board is a Feather CAN Bus RP2040 w/ u2if."""
921
+ return self .id == boards .FEATHER_CAN_U2IF
922
+
910
923
@property
911
924
def feather_epd_u2if (self ) -> bool :
912
925
"""Check whether the current board is a Feather ThinkInk RP2040 w/ u2if."""
913
926
return self .id == boards .FEATHER_EPD_U2IF
914
927
928
+ @property
929
+ def feather_rfm_u2if (self ) -> bool :
930
+ """Check whether the current board is a Feather RFM RP2040 w/ u2if."""
931
+ return self .id == boards .FEATHER_RFM_U2IF
932
+
915
933
@property
916
934
def itsybitsy_u2if (self ) -> bool :
917
935
"""Check whether the current board is a Itsy Bitsy w/ u2if."""
0 commit comments