variants: RAK4631: Enable DC/DC regulator to reduce power consumption
The RAK4631/RAK4630 module are able to use the DC/DC converter. Enable it to reduce power consumption. Signed-off-by: Frieder Schrempf <frieder@fris.de>
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#include "RAK4631Board.h"
|
#include "RAK4631Board.h"
|
||||||
|
|
||||||
void RAK4631Board::begin() {
|
void RAK4631Board::begin() {
|
||||||
NRF52Board::begin();
|
NRF52BoardDCDC::begin();
|
||||||
pinMode(PIN_VBAT_READ, INPUT);
|
pinMode(PIN_VBAT_READ, INPUT);
|
||||||
#ifdef PIN_USER_BTN
|
#ifdef PIN_USER_BTN
|
||||||
pinMode(PIN_USER_BTN, INPUT_PULLUP);
|
pinMode(PIN_USER_BTN, INPUT_PULLUP);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
#define PIN_VBAT_READ 5
|
#define PIN_VBAT_READ 5
|
||||||
#define ADC_MULTIPLIER (3 * 1.73 * 1.187 * 1000)
|
#define ADC_MULTIPLIER (3 * 1.73 * 1.187 * 1000)
|
||||||
|
|
||||||
class RAK4631Board : public NRF52BoardOTA {
|
class RAK4631Board : public NRF52BoardDCDC, public NRF52BoardOTA {
|
||||||
public:
|
public:
|
||||||
RAK4631Board() : NRF52BoardOTA("RAK4631_OTA") {}
|
RAK4631Board() : NRF52BoardOTA("RAK4631_OTA") {}
|
||||||
void begin();
|
void begin();
|
||||||
|
|||||||
Reference in New Issue
Block a user