Skip to content

Commit ec6547b

Browse files
committed
Fix button issue on WB55
1 parent c1c7d1a commit ec6547b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: examples/Central/LedControl/LedControl.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void setup() {
102102
while (!Serial);
103103

104104
// configure the button pin as input
105-
pinMode(buttonPin, INPUT);
105+
pinMode(buttonPin, INPUT_PULLUP);
106106

107107
// initialize the BLE hardware
108108
BLE.begin();

Diff for: examples/Peripheral/ButtonLED/ButtonLED.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void setup() {
108108
while (!Serial);
109109

110110
pinMode(ledPin, OUTPUT); // use the LED as an output
111-
pinMode(buttonPin, INPUT); // use button pin as an input
111+
pinMode(buttonPin, INPUT_PULLUP); // use button pin as an input
112112

113113
// begin initialization
114114
if (!BLE.begin()) {

0 commit comments

Comments
 (0)