]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/board.py
Merge pull request #437 from tigard-tools/master
[Adafruit_Blinka-hackapet.git] / src / board.py
index f277bc10ae6657b9c133fa44c8b3e655f4f9190e..0c8a6455ff962d4badde8034420e90698fa72b6e 100755 (executable)
@@ -167,6 +167,9 @@ elif board_id == ap_board.DRAGONBOARD_410C:
 elif board_id == ap_board.FTDI_FT232H:
     from adafruit_blinka.board.ftdi_ft232h import *
 
+elif board_id == ap_board.FTDI_FT2232H:
+    from adafruit_blinka.board.ftdi_ft2232h import *
+
 elif board_id == ap_board.BINHO_NOVA:
     from adafruit_blinka.board.binho_nova import *
 
@@ -230,8 +233,15 @@ elif "sphinx" in sys.modules:
 elif board_id is None:
     import platform
     import pkg_resources
-    package = str(pkg_resources.get_distribution('adafruit_platformdetect')).split()
-    raise NotImplementedError("{1} version {2} was unable to identify the board and/or microcontroller running the {0} platform. Please be sure you have the latest packages running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'".format(platform.system(),package[0],package[1]))
+
+    package = str(pkg_resources.get_distribution("adafruit_platformdetect")).split()
+    raise NotImplementedError(
+        "{1} version {2} was unable to identify the board and/or microcontroller running "
+        "the {0} platform. Please be sure you have the latest packages running: 'pip3 install "
+        "--upgrade adafruit-blinka adafruit-platformdetect'".format(
+            platform.system(), package[0], package[1]
+        )
+    )
 
 else:
     raise NotImplementedError("Board not supported {}".format(board_id))