We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1c7d1a commit ec6547bCopy full SHA for ec6547b
examples/Central/LedControl/LedControl.ino
@@ -102,7 +102,7 @@ void setup() {
102
while (!Serial);
103
104
// configure the button pin as input
105
- pinMode(buttonPin, INPUT);
+ pinMode(buttonPin, INPUT_PULLUP);
106
107
// initialize the BLE hardware
108
BLE.begin();
examples/Peripheral/ButtonLED/ButtonLED.ino
@@ -108,7 +108,7 @@ void setup() {
109
110
pinMode(ledPin, OUTPUT); // use the LED as an output
111
- pinMode(buttonPin, INPUT); // use button pin as an input
+ pinMode(buttonPin, INPUT_PULLUP); // use button pin as an input
112
113
// begin initialization
114
if (!BLE.begin()) {
0 commit comments