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 *
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)