]> Repositories - hackapet/Adafruit_Blinka.git/blobdiff - src/board.py
Add Orange PI 2 constant
[hackapet/Adafruit_Blinka.git] / src / board.py
index ddf008b0c6b39b8f3b0871690a5cdcbb9c0ec790..0c02cda07bb4d4d16414662a8f46abe66f07e0cc 100755 (executable)
@@ -92,6 +92,9 @@ elif board_id == ap_board.ORANGE_PI_LITE:
 elif board_id == ap_board.ORANGE_PI_PLUS_2E:
     from adafruit_blinka.board.orangepi.orangepipc import *
 
+elif board_id == ap_board.ORANGE_PI_2:
+    from adafruit_blinka.board.orangepi.orangepipc import *
+
 elif board_id == ap_board.GIANT_BOARD:
     from adafruit_blinka.board.giantboard import *
 
@@ -140,18 +143,31 @@ elif board_id == ap_board.SIFIVE_UNLEASHED:
 elif board_id == ap_board.PINE64:
     from adafruit_blinka.board.pine64 import *
 
+elif board_id == ap_board.CLOCKWORK_CPI3:
+    from adafruit_blinka.board.clockworkcpi3 import *
+
+elif board_id == ap_board.ONION_OMEGA2:
+    from adafruit_blinka.board.onion.omega2 import *
+
+elif board_id == ap_board.ROCK_PI_S:
+    from adafruit_blinka.board.radxa.rockpis import *
+
 elif "sphinx" in sys.modules:
     pass
 
 else:
     raise NotImplementedError("Board not supported {}".format(board_id))
 
+
 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)