rpi_pico2 HW variant support

This commit is contained in:
nminaylov committed 2026-11-03 14:50:29 +03:00
1 parent df8e962998
commit 38eb3d99e4
6 files changed
+263 -1

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#include "RpiPico2Board.h"
#include <Arduino.h>
#include <Wire.h>
void RpiPico2Board::begin() {
// for future use, sub-classes SHOULD call this from their begin()
startup_reason = BD_STARTUP_NORMAL;
#ifdef P_LORA_TX_LED
pinMode(P_LORA_TX_LED, OUTPUT);
#endif
#ifdef PIN_VBAT_READ
pinMode(PIN_VBAT_READ, INPUT);
#endif
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL)
Wire.setSDA(PIN_BOARD_SDA);
Wire.setSCL(PIN_BOARD_SCL);
#endif
Wire.begin();
delay(10); // give sx1262 some time to power up
}
bool RpiPico2Board::startOTAUpdate(const char *id, char reply[]) {
return false;
}