Fixing LED driver instantiation.

This commit is contained in:
sandyjmacdonald 2021-04-21 09:48:32 +01:00
parent d30e3ce4ab
commit bd6e9ae45f
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ Notes
import time
import board
from adafruit_is31fl3731 import keybow2040
import adafruit_is31fl3731
from digitalio import DigitalInOut, Direction, Pull
# These are the 16 switches on Keybow, with their board-defined names.
@ -64,7 +64,7 @@ class Keybow2040(object):
"""
def __init__(self, i2c):
self.pins = _PINS
self.display = keybow2040.Keybow2040(i2c)
self.display = adafruit_is31fl3731.Keybow2040(i2c)
self.keys = []
self.time_of_last_press = time.monotonic()
self.time_since_last_press = None