Skip to content

Commit 0f56532

Browse files
committed
variants: WisMesh Tag: Enable DC/DC regulator
According to the documentation and experiments on other boards using NRF52 + SX1262 this reduces the power consumption significantly. This assumes that the hardware actually has the inductor for the internal DC/DC regulator populated which is very likely. Even if not, it won't hurt. Signed-off-by: Frieder Schrempf <[email protected]>
1 parent 07e7e2d commit 0f56532

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

variants/rak_wismesh_tag/RAKWismeshTagBoard.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ static void disconnect_callback(uint16_t conn_handle, uint8_t reason) {
2121
void RAKWismeshTagBoard::begin() {
2222
// for future use, sub-classes SHOULD call this from their begin()
2323
startup_reason = BD_STARTUP_NORMAL;
24+
NRF_POWER->DCDCEN = 1;
25+
2426
pinMode(PIN_VBAT_READ, INPUT);
2527
pinMode(PIN_USER_BTN, INPUT_PULLUP);
2628

0 commit comments

Comments
 (0)