X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/fe2eaf883fff4d8570c97af1c0166214f57c7d8b..ca0464a7cb63ba5cb0abe7f32d0ff264fa5d52ff:/src/board.py diff --git a/src/board.py b/src/board.py index fef78ee..887c296 100755 --- a/src/board.py +++ b/src/board.py @@ -55,6 +55,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_POCKETBEAGLE: + from adafruit_blinka.board.beaglebone_pocketbeagle import * + elif board_id == ap_board.ORANGE_PI_PC: from adafruit_blinka.board.orangepipc import * @@ -78,3 +81,13 @@ elif "sphinx" in sys.modules: 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)