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.
2 parents f2f1ced + 0dfa099 commit 8315480Copy full SHA for 8315480
CPB_Keybutton_BLE/code.py
@@ -10,6 +10,8 @@
10
import time
11
import board
12
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,6 +34,14 @@
32
34
button_4.direction = Direction.INPUT
33
35
button_5.direction = Direction.INPUT
36
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
42
+# button_4.pull = Pull.UP
43
+# button_5.pull = Pull.UP
44
+
45
hid = HIDService()
46
47
device_info = DeviceInfoService(software_revision=adafruit_ble.__version__,
0 commit comments