We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f3d9a commit b5380ecCopy full SHA for b5380ec
examples/asyncio_event_example.py
@@ -8,6 +8,7 @@
8
9
import asyncio
10
import board
11
+# pylint: disable=unused-import
12
import adafruit_ticks
13
import digitalio
14
from adafruit_debouncer import Debouncer
@@ -17,8 +18,8 @@
17
18
# Import library modules, as is tradition
19
20
pin = digitalio.DigitalInOut(board.BUTTON)
-pin.direction = digitalio.Direction.INPUT
21
-pin.pull = digitalio.Pull.UP
+pin.direction = Direction.INPUT
22
+pin.pull = Pull.UP
23
button = Debouncer(pin)
24
25
# Instantiate the input, in this case, the 'BOOT' button on a
@@ -35,6 +36,7 @@
35
36
# a dictionary for later retrieval. (Blue is not used in this code.)
37
38
class Color:
39
+ # pylint: disable=too-few-public-methods
40
def __init__(self, initial_value):
41
self.value = initial_value
42
0 commit comments