Browse Source
Merge pull request #184 from adrian-immel/Fix-Floating-Pin
Fix Floating Pin on FakeTec/Promicro: Update BUTTON_PIN to INPUT_PULLUP
pull/186/head
ripplebiz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/helpers/nrf52/PromicroBoard.cpp
|
|
@ -14,7 +14,7 @@ void PromicroBoard::begin() { |
|
|
pinMode(PIN_VBAT_READ, INPUT); |
|
|
pinMode(PIN_VBAT_READ, INPUT); |
|
|
|
|
|
|
|
|
#ifdef BUTTON_PIN |
|
|
#ifdef BUTTON_PIN |
|
|
pinMode(BUTTON_PIN, INPUT); |
|
|
pinMode(BUTTON_PIN, INPUT_PULLUP); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL) |
|
|
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL) |
|
|
|