pull/1/head
US1GHQ 2021-07-26 22:01:54 +03:00
parent 384483a7f4
commit 8f8ba8c0f9
1 changed files with 3 additions and 1 deletions

View File

@ -395,6 +395,8 @@ void batt_read(){
#ifdef T_BEAM_V1_0 #ifdef T_BEAM_V1_0
BattVolts = axp.getBattVoltage()/1000; BattVolts = axp.getBattVoltage()/1000;
InpVolts = axp.getVbusVoltage()/1000; InpVolts = axp.getVbusVoltage()/1000;
#elif HELTEC_V2
BattVolts = analogRead(13)*7.221/1024;
#else #else
BattVolts = analogRead(35)*7.221/4096; BattVolts = analogRead(35)*7.221/4096;
#endif #endif
@ -733,7 +735,7 @@ void setup(){
pinMode(RXPIN, OUTPUT); pinMode(RXPIN, OUTPUT);
#endif #endif
pinMode(TXLED, OUTPUT); pinMode(TXLED, OUTPUT);
#ifdef T_BEAM_V1_0 #ifdef T_BEAM_V1_0
pinMode(BUTTON, INPUT); pinMode(BUTTON, INPUT);
#elif T_BEAM_V0_7 #elif T_BEAM_V0_7