Skip to content

Commit 196c924

Browse files
committed
[nRF52] battery voltage ADC for T-Impulse Plus [skip ci]
1 parent 74fdcf6 commit 196c924

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • software/firmware/source/SoftRF/src/platform

software/firmware/source/SoftRF/src/platform/nRF52.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,6 +2154,8 @@ static void nRF52_setup()
21542154
hw_info.haptic = HAPTIC_DRV2605;
21552155
}
21562156

2157+
pinMode(SOC_GPIO_PIN_X1_BUZZER, INPUT_PULLDOWN);
2158+
21572159
Wire.beginTransmission(BMM350_ADDRESS);
21582160
if (Wire.endTransmission() == 0) {
21592161
hw_info.mag = MAG_BMM350;
@@ -4493,6 +4495,10 @@ static float nRF52_Battery_param(uint8_t param)
44934495
bat_adc_pin = SOC_GPIO_PIN_T2000_BATTERY;
44944496
mult = SOC_ADC_T2000_VOLTAGE_DIV;
44954497
break;
4498+
case NRF52_LILYGO_TIMPULSE_PLUS:
4499+
bat_adc_pin = SOC_GPIO_PIN_TIP_BATTERY;
4500+
mult = SOC_ADC_VOLTAGE_DIV;
4501+
break;
44964502
case NRF52_LILYGO_TECHO_REV_0:
44974503
case NRF52_LILYGO_TECHO_REV_1:
44984504
case NRF52_LILYGO_TECHO_REV_2:

0 commit comments

Comments
 (0)