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 f2f1ced commit ce2a503Copy full SHA for ce2a503
CPB_Keybutton_BLE/code.py
@@ -9,7 +9,7 @@
9
"""
10
import time
11
import board
12
-from digitalio import DigitalInOut, Direction
+from digitalio import DigitalInOut, Direction, Pull
13
14
import adafruit_ble
15
from adafruit_ble.advertising import Advertisement
@@ -32,6 +32,13 @@
32
button_4.direction = Direction.INPUT
33
button_5.direction = Direction.INPUT
34
35
+# NOTE: If you are not using buttons with built-in pullups, uncomment the five lines below.
36
+# button_1.pull = Pull.UP
37
+# button_2.pull = Pull.UP
38
+# button_3.pull = Pull.UP
39
+# button_4.pull = Pull.UP
40
+# button_5.pull = Pull.UP
41
+
42
hid = HIDService()
43
44
device_info = DeviceInfoService(software_revision=adafruit_ble.__version__,
0 commit comments