+ 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))
else:
raise NotImplementedError("Board not supported {}".format(board_id))
+if "SCL" in locals() and "SDA" in locals():
+
+ def I2C():
+ """The singleton I2C interface"""
+ import busio
-def I2C():
- """The singleton I2C interface"""
- import busio
+ return busio.I2C(SCL, SDA)
- return busio.I2C(SCL, SDA)
+if "SCLK" in locals() and "MOSI" in locals() and "MISO" in locals():