From 573920f0ae134fd5da4f09e560e9ce0e7454631b Mon Sep 17 00:00:00 2001 From: sandyjmacdonald Date: Wed, 21 Apr 2021 10:44:24 +0100 Subject: [PATCH] Updating LED driver instantiation to match changes to Adafruit IS31FL3731 library --- keybow2040.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keybow2040.py b/keybow2040.py index fa78b9b..f74f833 100755 --- a/keybow2040.py +++ b/keybow2040.py @@ -31,7 +31,8 @@ Notes import time import board -import adafruit_is31fl3731 + +from adafruit_is31fl3731.keybow2040 import Keybow2040 as Display from digitalio import DigitalInOut, Direction, Pull # These are the 16 switches on Keybow, with their board-defined names. @@ -64,7 +65,7 @@ class Keybow2040(object): """ def __init__(self, i2c): self.pins = _PINS - self.display = adafruit_is31fl3731.Keybow2040(i2c) + self.display = Display(i2c) self.keys = [] self.time_of_last_press = time.monotonic() self.time_since_last_press = None