X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/ec3ddd9f3e7a2e6f7114ba2f74448198134b3672..2e59a655e5bcd4057cd4eaf4130305110c6afe05:/src/board.py diff --git a/src/board.py b/src/board.py index 9de4172..9cdd379 100755 --- a/src/board.py +++ b/src/board.py @@ -224,7 +224,7 @@ elif "sphinx" in sys.modules: else: raise NotImplementedError("Board not supported {}".format(board_id)) -if SCL and SDA: +if "SCL" in locals() and "SDA" in locals(): def I2C(): """The singleton I2C interface""" @@ -233,7 +233,7 @@ if SCL and SDA: return busio.I2C(SCL, SDA) -if SCLK and MOSI and MISO: +if "SCLK" in locals() and "MOSI" in locals() and "MISO" in locals(): def SPI(): """The singleton SPI interface"""