mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
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 <frieder@fris.de>
This commit is contained in:
parent
07e7e2d44b
commit
0f565323a0
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ static void disconnect_callback(uint16_t conn_handle, uint8_t reason) {
|
|||
void RAKWismeshTagBoard::begin() {
|
||||
// for future use, sub-classes SHOULD call this from their begin()
|
||||
startup_reason = BD_STARTUP_NORMAL;
|
||||
NRF_POWER->DCDCEN = 1;
|
||||
|
||||
pinMode(PIN_VBAT_READ, INPUT);
|
||||
pinMode(PIN_USER_BTN, INPUT_PULLUP);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue