Skip to content

Commit

Permalink
Fix button issue on WB55
Browse files Browse the repository at this point in the history
  • Loading branch information
cparata committed Feb 9, 2021
1 parent c1c7d1a commit ec6547b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Central/LedControl/LedControl.ino
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void setup() {
while (!Serial);

// configure the button pin as input
pinMode(buttonPin, INPUT);
pinMode(buttonPin, INPUT_PULLUP);

// initialize the BLE hardware
BLE.begin();
Expand Down
2 changes: 1 addition & 1 deletion examples/Peripheral/ButtonLED/ButtonLED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void setup() {
while (!Serial);

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

// begin initialization
if (!BLE.begin()) {
Expand Down

0 comments on commit ec6547b

Please sign in to comment.