comment out sometimes-unused import
This commit is contained in:
parent
ce2a50383d
commit
0dfa0995db
1 changed files with 5 additions and 2 deletions
|
|
@ -9,7 +9,9 @@ Attach five buttons with pullup resistors to Feather nRF52840
|
|||
"""
|
||||
import time
|
||||
import board
|
||||
from digitalio import DigitalInOut, Direction, Pull
|
||||
from digitalio import DigitalInOut, Direction
|
||||
# Uncomment if setting .pull below.
|
||||
# from digitalio import Pull
|
||||
|
||||
import adafruit_ble
|
||||
from adafruit_ble.advertising import Advertisement
|
||||
|
|
@ -32,7 +34,8 @@ button_3.direction = Direction.INPUT
|
|||
button_4.direction = Direction.INPUT
|
||||
button_5.direction = Direction.INPUT
|
||||
|
||||
# NOTE: If you are not using buttons with built-in pullups, uncomment the five lines below.
|
||||
# NOTE: If you are not using buttons with built-in pullups, uncomment the five lines below,
|
||||
# and the `from digitalio import Pull` above.
|
||||
# button_1.pull = Pull.UP
|
||||
# button_2.pull = Pull.UP
|
||||
# button_3.pull = Pull.UP
|
||||
|
|
|
|||
Loading…
Reference in a new issue