We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2a503 commit 0dfa099Copy full SHA for 0dfa099
CPB_Keybutton_BLE/code.py
@@ -9,7 +9,9 @@
9
"""
10
import time
11
import board
12
-from digitalio import DigitalInOut, Direction, Pull
+from digitalio import DigitalInOut, Direction
13
+# Uncomment if setting .pull below.
14
+# from digitalio import Pull
15
16
import adafruit_ble
17
from adafruit_ble.advertising import Advertisement
@@ -32,7 +34,8 @@
32
34
button_4.direction = Direction.INPUT
33
35
button_5.direction = Direction.INPUT
36
-# NOTE: If you are not using buttons with built-in pullups, uncomment the five lines below.
37
+# NOTE: If you are not using buttons with built-in pullups, uncomment the five lines below,
38
+# and the `from digitalio import Pull` above.
39
# button_1.pull = Pull.UP
40
# button_2.pull = Pull.UP
41
# button_3.pull = Pull.UP
0 commit comments