Browse Source
Merge pull request #1178 from fschrempf/xiao-nrf-button-pullup-fix
Xiao NRF52: Enable pullup on button input
pull/1196/head
Liam Cottle
6 months 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
-
variants/xiao_nrf52/XiaoNrf52Board.cpp
|
|
|
@ -38,7 +38,7 @@ void XiaoNrf52Board::begin() { |
|
|
|
digitalWrite(VBAT_ENABLE, HIGH); |
|
|
|
|
|
|
|
#ifdef PIN_USER_BTN |
|
|
|
pinMode(PIN_USER_BTN, INPUT); |
|
|
|
pinMode(PIN_USER_BTN, INPUT_PULLUP); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if defined(PIN_WIRE_SDA) && defined(PIN_WIRE_SCL) |
|
|
|
|