X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/9ee0ad5ca97bd23a45a03af5f22e1a08abfe0992..50c34129cf8a33735078b15699b154020138011b:/src/board.py diff --git a/src/board.py b/src/board.py index a491a0e..c89fd43 100755 --- a/src/board.py +++ b/src/board.py @@ -61,8 +61,30 @@ elif board_id == ap_board.ORANGE_PI_PC: 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)