variants: XIAO NRF52: Enable user button

The Xiao nRF52840 combined with the Wio-SX1262 is often used for
cheap and compact DIY companion nodes. The Wio actually has an onboard
pushbutton that can be used as user button. Enable support for the
button.

Signed-off-by: Frieder Schrempf <frieder@fris.de>
Этот коммит содержится в:
Frieder Schrempf
2025-11-22 15:05:06 +01:00
родитель 11f119a7fb
Коммит c76d337a00
5 изменённых файлов: 21 добавлений и 1 удалений
+4
Просмотреть файл
@@ -29,6 +29,10 @@ void XiaoNrf52Board::begin() {
pinMode(VBAT_ENABLE, OUTPUT);
digitalWrite(VBAT_ENABLE, HIGH);
#ifdef PIN_USER_BTN
pinMode(PIN_USER_BTN, INPUT);
#endif
#if defined(PIN_WIRE_SDA) && defined(PIN_WIRE_SCL)
Wire.setPins(PIN_WIRE_SDA, PIN_WIRE_SCL);
#endif