@@ -250,7 +250,7 @@ def _pi_rev_code(self) -> Optional[str]:
250
250
except FileNotFoundError :
251
251
return None
252
252
253
- # pylint: disable=no-self-use
253
+ # pylint: disable=useless-option-value
254
254
def _beaglebone_id (self ) -> Optional [str ]:
255
255
"""Try to detect id of a Beaglebone."""
256
256
board_value = self .detector .get_device_compatible ()
@@ -289,7 +289,7 @@ def _beaglebone_id(self) -> Optional[str]:
289
289
board_value = self .detector .get_armbian_release_field ("BOARD" )
290
290
return None
291
291
292
- # pylint: enable=no-self-use
292
+ # pylint: enable=useless-option-value
293
293
294
294
def _bbai_id (self ) -> Optional [str ]:
295
295
"""Try to detect id of a Beaglebone AI related board."""
@@ -477,7 +477,7 @@ def _pine64_id(self) -> Optional[str]:
477
477
board = boards .SOPINE
478
478
return board
479
479
480
- # pylint: disable=no-self-use
480
+ # pylint: disable=useless-option-value
481
481
def _pynq_id (self ) -> Optional [str ]:
482
482
"""Try to detect the id for Xilinx PYNQ boards."""
483
483
try :
@@ -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