Skip to content

Commit b5380ec

Browse files
authored
Update asyncio_event_example.py
1 parent 96f3d9a commit b5380ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/asyncio_event_example.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import asyncio
1010
import board
11+
# pylint: disable=unused-import
1112
import adafruit_ticks
1213
import digitalio
1314
from adafruit_debouncer import Debouncer
@@ -17,8 +18,8 @@
1718
# Import library modules, as is tradition
1819

1920
pin = digitalio.DigitalInOut(board.BUTTON)
20-
pin.direction = digitalio.Direction.INPUT
21-
pin.pull = digitalio.Pull.UP
21+
pin.direction = Direction.INPUT
22+
pin.pull = Pull.UP
2223
button = Debouncer(pin)
2324

2425
# Instantiate the input, in this case, the 'BOOT' button on a
@@ -35,6 +36,7 @@
3536
# a dictionary for later retrieval. (Blue is not used in this code.)
3637

3738
class Color:
39+
# pylint: disable=too-few-public-methods
3840
def __init__(self, initial_value):
3941
self.value = initial_value
4042

0 commit comments

Comments
 (0)