@@ -617,6 +617,8 @@ def _allwinner_variants_id(self) -> Optional[str]:
617
617
# TODO: Add other specifc board contexts here
618
618
return board
619
619
620
+ # pylint: disable=too-many-return-statements
621
+
620
622
def _rp2040_u2if_id (self ) -> Optional [str ]:
621
623
import hid
622
624
@@ -643,9 +645,14 @@ def _rp2040_u2if_id(self) -> Optional[str]:
643
645
# MacroPad RP2040
644
646
if product == 0x0107 :
645
647
return boards .MACROPAD_U2IF
648
+ # Feather RP2040 ThinkInk
649
+ if product == 0x812C :
650
+ return boards .FEATHER_EPD_U2IF
646
651
# Will only reach here if a device was added in chip.py but here.
647
652
raise RuntimeError ("RP2040_U2IF device was added to chip but not board." )
648
653
654
+ # pylint: enable=too-many-return-statements
655
+
649
656
def _siemens_simatic_iot2000_id (self ) -> Optional [str ]:
650
657
"""Try to detect if this is a IOT2050 Gateway."""
651
658
board_value = self .detector .get_device_model ()
@@ -823,6 +830,7 @@ def lazily_generate_conditions():
823
830
yield self .board .GREATFET_ONE
824
831
yield self .board .PICO_U2IF
825
832
yield self .board .FEATHER_U2IF
833
+ yield self .board .FEATHER_EPD_U2IF
826
834
yield self .board .ITSYBITY_U2IF
827
835
yield self .board .MACROPAD_U2IF
828
836
yield self .board .QTPY_U2IF
@@ -899,6 +907,11 @@ def feather_u2if(self) -> bool:
899
907
"""Check whether the current board is a Feather RP2040 w/ u2if."""
900
908
return self .id == boards .FEATHER_U2IF
901
909
910
+ @property
911
+ def feather_epd_u2if (self ) -> bool :
912
+ """Check whether the current board is a Feather ThinkInk RP2040 w/ u2if."""
913
+ return self .id == boards .FEATHER_EPD_U2IF
914
+
902
915
@property
903
916
def itsybitsy_u2if (self ) -> bool :
904
917
"""Check whether the current board is a Itsy Bitsy w/ u2if."""
0 commit comments