X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a43bcc2b4889a6f905aab9a3bff5f178735a2e41..b50846d4207dbea6ac5dc2d22bce5c98f97092b9:/src/board.py?ds=inline diff --git a/src/board.py b/src/board.py index e3700fb..8d68aac 100644 --- a/src/board.py +++ b/src/board.py @@ -142,6 +142,9 @@ elif board_id == ap_board.BANANA_PI_M2_PLUS: elif board_id == ap_board.BANANA_PI_M5: from adafruit_blinka.board.bananapi.bpim5 import * +elif board_id == ap_board.LEMAKER_BANANA_PRO: + from adafruit_blinka.board.lemaker.bananapro import * + elif board_id == ap_board.GIANT_BOARD: from adafruit_blinka.board.giantboard import * @@ -223,6 +226,12 @@ elif board_id == ap_board.PINE64: elif board_id == ap_board.PINEH64: from adafruit_blinka.board.pineH64 import * +elif board_id == ap_board.PCDUINO2: + from adafruit_blinka.board.linksprite.pcduino2 import * + +elif board_id == ap_board.PCDUINO3: + from adafruit_blinka.board.linksprite.pcduino3 import * + elif board_id == ap_board.SOPINE: from adafruit_blinka.board.soPine import * @@ -301,6 +310,15 @@ 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_CAN_U2IF: + from adafruit_blinka.board.feather_can_u2if import * + +elif board_id == ap_board.FEATHER_EPD_U2IF: + from adafruit_blinka.board.feather_epd_u2if import * + +elif board_id == ap_board.FEATHER_RFM_U2IF: + from adafruit_blinka.board.feather_rfm_u2if import * + elif board_id == ap_board.QTPY_U2IF: from adafruit_blinka.board.qtpy_u2if import * @@ -313,6 +331,9 @@ elif board_id == ap_board.MACROPAD_U2IF: elif board_id == ap_board.QT2040_TRINKEY_U2IF: from adafruit_blinka.board.qt2040_trinkey_u2if import * +elif board_id == ap_board.KB2040_U2IF: + from adafruit_blinka.board.kb2040_u2if import * + elif board_id == ap_board.LICHEE_RV: from adafruit_blinka.board.lichee_rv import * @@ -340,15 +361,20 @@ 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 by running: + 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect' + + If you are running the latest package, your board may not yet be supported. Please + open a New Issue on GitHub at https://github.com/adafruit/Adafruit_Blinka/issues and + select New Board Request. + """ ) 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():