mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-09 00:14:55 +00:00
add Heltec V3 board
This commit is contained in:
parent
0db0a4a697
commit
36ca41c3c0
4 changed files with 24 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue