From 35348410089503eb71c5b2de57fcb39a2614bce9 Mon Sep 17 00:00:00 2001 From: Benny Meisels Date: Fri, 21 Feb 2020 14:50:42 +0100 Subject: [PATCH] Changed to use I2C and SPI from board instead of creating new object from busio --- lib/arambadge.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/arambadge.py b/lib/arambadge.py index 9b4be95..0bb0d8d 100644 --- a/lib/arambadge.py +++ b/lib/arambadge.py @@ -3,7 +3,6 @@ # Copyright (c) 2019 Uri Shaked import board -import busio from digitalio import DigitalInOut, Pull from analogio import AnalogIn import displayio @@ -117,14 +116,14 @@ def pixels(self): def i2c(self): """direct access to the I2C bus""" if not self._i2c: - self._i2c = busio.I2C(board.SCL, board.SDA) + self._i2c = board.I2C() return self._i2c @property def spi(self): """direct access to the SPI bus""" if not self._spi: - self._spi = busio.SPI(board.SCK, MISO=board.MISO, MOSI=board.MOSI) + self._spi = board.SPI() return self._spi @property