X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/90390bc7eb1ba6c1c3d5862816b3b121e3f6d5db..a79e37b2729f77faf00545062fc4a8ded1a6eb97:/src/board.py diff --git a/src/board.py b/src/board.py index 30b9f0a..9f0f161 100755 --- a/src/board.py +++ b/src/board.py @@ -152,12 +152,16 @@ elif "sphinx" in sys.modules: 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)