X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/fe2eaf883fff4d8570c97af1c0166214f57c7d8b..5f2c3fb5ad0f9892b9910a4e7c4beca0f3f79b77:/src/board.py diff --git a/src/board.py b/src/board.py index fef78ee..9732e4e 100755 --- a/src/board.py +++ b/src/board.py @@ -55,9 +55,15 @@ 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_POCKETBEAGLE: + from adafruit_blinka.board.beaglebone_pocketbeagle import * + elif board_id == ap_board.ORANGE_PI_PC: from adafruit_blinka.board.orangepipc import * +elif board_id == ap_board.ORANGE_PI_R1: + from adafruit_blinka.board.orangepir1 import * + elif board_id == ap_board.GIANT_BOARD: from adafruit_blinka.board.giantboard import * @@ -73,8 +79,21 @@ elif board_id == ap_board.JETSON_XAVIER: elif board_id == ap_board.JETSON_NANO: from adafruit_blinka.board.jetson_nano import * +elif board_id == ap_board.CORAL_EDGE_TPU_DEV: + from adafruit_blinka.board.coral_edge_tpu import * + elif "sphinx" in sys.modules: pass else: raise NotImplementedError("Board not supported") + +def I2C(): + """The singleton I2C interface""" + import busio + return busio.I2C(SCL, SDA) + +def SPI(): + """The singleton SPI interface""" + import busio + return busio.SPI(SCLK, MOSI, MISO)