mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
variants: XIAO NRF52: Enable DC/DC regulator
This reduces the power consumption by approximately 25%. Signed-off-by: Frieder Schrempf <frieder@fris.de>
This commit is contained in:
parent
b9b82fcf1b
commit
11f119a7fb
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ static void disconnect_callback(uint16_t conn_handle, uint8_t reason) {
|
|||
void XiaoNrf52Board::begin() {
|
||||
// for future use, sub-classes SHOULD call this from their begin()
|
||||
startup_reason = BD_STARTUP_NORMAL;
|
||||
NRF_POWER->DCDCEN = 1;
|
||||
|
||||
pinMode(PIN_VBAT, INPUT);
|
||||
pinMode(VBAT_ENABLE, OUTPUT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue