]> Repositories - hackapet/Adafruit_Blinka.git/blobdiff - src/board.py
Add Orange PI 2 constant
[hackapet/Adafruit_Blinka.git] / src / board.py
index 30b9f0ac077ce9a846164ef8c1aad9d0db30f765..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 *
 
@@ -146,18 +149,25 @@ elif board_id == ap_board.CLOCKWORK_CPI3:
 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)