X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a9575f60ea3fa87f280236cb8f4c1776a7332280..50c34129cf8a33735078b15699b154020138011b:/src/board.py diff --git a/src/board.py b/src/board.py index e354ce6..c89fd43 100755 --- a/src/board.py +++ b/src/board.py @@ -58,8 +58,33 @@ elif board_id == ap_board.BEAGLEBONE_BLACK: 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_TXX: + from adafruit_blinka.board.jetson_txx 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)