X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/012a2e36cb58f6a038bedb8232e36ef6213cfd02..ceb9335735eca4763f42b04e4772ff2922ca9518:/src/board.py diff --git a/src/board.py b/src/board.py index e354ce6..babc5e9 100755 --- a/src/board.py +++ b/src/board.py @@ -55,11 +55,42 @@ 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.GIANT_BOARD: + from adafruit_blinka.board.giantboard import * + +elif board_id == ap_board.JETSON_TX1: + from adafruit_blinka.board.jetson_tx1 import * + +elif board_id == ap_board.JETSON_TX2: + from adafruit_blinka.board.jetson_tx2 import * + +elif board_id == ap_board.JETSON_XAVIER: + from adafruit_blinka.board.jetson_xavier import * + +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)