Skip to content

Commit a91babc

Browse files
committed
Initialize self._event as Event
1 parent b6101ea commit a91babc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_cursorcontrol/cursorcontrol_cursormanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import board
1212
from micropython import const
1313
import analogio
14-
from keypad import ShiftRegisterKeys
14+
from keypad import ShiftRegisterKeys, Event
1515
from adafruit_debouncer import Debouncer
1616

1717
__version__ = "0.0.0-auto.0"
@@ -37,7 +37,7 @@ def __init__(self, cursor):
3737
self._cursor = cursor
3838
self._is_clicked = False
3939
self._pad_states = 0
40-
self._event = None
40+
self._event = Event()
4141
self._init_hardware()
4242

4343
def __enter__(self):

0 commit comments

Comments
 (0)