Read battery voltage on Minewsemi ME25LS01

This commit is contained in:
Normunds Gavars 2025-07-04 19:27:11 +03:00
parent 70a9990f45
commit aa3c702ffd
5 changed files with 22 additions and 73 deletions

View file

@ -35,7 +35,7 @@ const uint32_t g_ADigitalPinMap[PINS_COUNT + 1] =
28, // P0.28
29, // P0.29,
30, // P0.30
31, // P0.31,
31, // P0.31, BATTERY_PIN
32, // P1.00
33, // P1.01, LORA_DIO_1
34, // P1.02
@ -60,8 +60,8 @@ void initVariant()
pinMode(BATTERY_PIN, INPUT);
pinMode(PIN_BUTTON1, INPUT);
pinMode(PIN_3V3_EN, OUTPUT);
pinMode(PIN_3V3_ACC_EN, OUTPUT);
// pinMode(PIN_3V3_EN, OUTPUT);
// pinMode(PIN_3V3_ACC_EN, OUTPUT);
pinMode(LED_PIN, OUTPUT);
pinMode(P_LORA_TX_LED, OUTPUT);