X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/6558bfd141f85f3530db4cf764e359a07b14180c..99269b02e244c02accf4fd2fab3629b6bc35d8ff:/src/board.py diff --git a/src/board.py b/src/board.py index f668e15..278b476 100755 --- a/src/board.py +++ b/src/board.py @@ -49,7 +49,7 @@ elif detector.board.any_raspberry_pi_40_pin: elif detector.board.any_raspberry_pi_cm: from adafruit_blinka.board.raspi_cm import * -elif detector.board.RASPBERRY_PI_B_REV1: +elif detector.board.RASPBERRY_PI_A or detector.board.RASPBERRY_PI_B_REV1: from adafruit_blinka.board.raspi_1b_rev1 import * elif detector.board.RASPBERRY_PI_B_REV2: @@ -58,6 +58,9 @@ elif detector.board.RASPBERRY_PI_B_REV2: elif board_id == ap_board.BEAGLEBONE_BLACK: from adafruit_blinka.board.beaglebone_black import * +elif board_id == ap_board.BEAGLEBONE_GREEN_WIRELESS: + from adafruit_blinka.board.beaglebone_green_wireless import * + elif board_id == ap_board.BEAGLEBONE_POCKETBEAGLE: from adafruit_blinka.board.beaglebone_pocketbeagle import * @@ -67,6 +70,9 @@ elif board_id == ap_board.ORANGE_PI_PC: elif board_id == ap_board.ORANGE_PI_R1: from adafruit_blinka.board.orangepir1 import * +elif board_id == ap_board.ORANGE_PI_ZERO: + from adafruit_blinka.board.orangepizero import * + elif board_id == ap_board.GIANT_BOARD: from adafruit_blinka.board.giantboard import * @@ -88,18 +94,20 @@ elif board_id == ap_board.CORAL_EDGE_TPU_DEV: elif board_id == ap_board.ODROID_C2: from adafruit_blinka.board.odroidc2 import * -#adding N2 elif board_id == ap_board.ODROID_N2: from adafruit_blinka.board.odroidn2 import * elif board_id == ap_board.DRAGONBOARD_410C: from adafruit_blinka.board.dragonboard_410c import * +elif board_id == ap_board.FTDI_FT232H: + from adafruit_blinka.board.ftdi_ft232h import * + elif "sphinx" in sys.modules: pass else: - raise NotImplementedError("Board not supported") + raise NotImplementedError("Board not supported {}".format(board_id)) def I2C(): """The singleton I2C interface"""