]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #668 from BlitzCityDIY/main 8.18.0
authorLimor "Ladyada" Fried <limor@ladyada.net>
Thu, 6 Apr 2023 22:23:38 +0000 (18:23 -0400)
committerGitHub <noreply@github.com>
Thu, 6 Apr 2023 22:23:38 +0000 (18:23 -0400)
Adding support for Feather ThinkInk

1  2 
src/board.py

diff --combined src/board.py
index e3700fbba90012a4728f1d0e39fa157294e83612,943ccc7b978408ce2481e43b907aa9011a5a2952..c1785ff363f6174515ab61e880a9e85aa8272113
@@@ -61,9 -61,6 +61,9 @@@ elif board_id == ap_board.BEAGLEBONE
  elif board_id == ap_board.BEAGLEBONE_BLACK:
      from adafruit_blinka.board.beagleboard.beaglebone_black import *
  
 +elif board_id == ap_board.BEAGLEBONE_BLUE:
 +    from adafruit_blinka.board.beagleboard.beaglebone_blue import *
 +
  elif board_id == ap_board.BEAGLEBONE_GREEN:
      from adafruit_blinka.board.beagleboard.beaglebone_black import *
  
@@@ -166,9 -163,6 +166,9 @@@ elif board_id == ap_board.JETSON_NX
  elif board_id == ap_board.JETSON_AGX_ORIN:
      from adafruit_blinka.board.nvidia.jetson_orin import *
  
 +elif board_id in (ap_board.JETSON_ORIN_NX, ap_board.JETSON_ORIN_NANO):
 +    from adafruit_blinka.board.nvidia.jetson_orin_nx import *
 +
  elif board_id == ap_board.CLARA_AGX_XAVIER:
      from adafruit_blinka.board.nvidia.clara_agx_xavier import *
  
@@@ -301,6 -295,9 +301,9 @@@ elif board_id == ap_board.PICO_U2IF
  elif board_id == ap_board.FEATHER_U2IF:
      from adafruit_blinka.board.feather_u2if import *
  
+ elif board_id == ap_board.FEATHER_EPD_U2IF:
+     from adafruit_blinka.board.feather_epd_u2if import *
  elif board_id == ap_board.QTPY_U2IF:
      from adafruit_blinka.board.qtpy_u2if import *
  
@@@ -340,15 -337,16 +343,16 @@@ elif board_id is None
  
      package = str(pkg_resources.get_distribution("adafruit_platformdetect")).split()
      raise NotImplementedError(
-         "{1} version {2} was unable to identify the board and/or microcontroller running "
-         "the {0} platform. Please be sure you have the latest packages running: 'pip3 install "
-         "--upgrade adafruit-blinka adafruit-platformdetect'".format(
-             platform.system(), package[0], package[1]
-         )
+         f"""
+         {package[0]} version {package[1]} was unable to identify the board and/or
+         microcontroller running the {platform.system()} platform. Please be sure you
+         have the latest packages running:
+         'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'
+         """
      )
  
  else:
-     raise NotImplementedError("Board not supported {}".format(board_id))
+     raise NotImplementedError(f"Board not supported {board_id}.")
  
  if "SCL" in locals() and "SDA" in locals():