add Heltec V3 board

This commit is contained in:
richonguzman 2023-12-26 17:27:36 -03:00
parent 0db0a4a697
commit 36ca41c3c0
4 changed files with 24 additions and 0 deletions

View file

@ -19,7 +19,12 @@ namespace BATTERY_Utils {
int sample;
int sampleSum = 0;
for (int i=0; i<100; i++) {
#if defined(TTGO_T_LORA_V2_1) || defined(HELTEC_V2)
sample = analogRead(batteryPin);
#endif
#ifdef HELTEC_V3
sample = 0;
#endif
sampleSum += sample;
delayMicroseconds(50);
}