Merge pull request #923 from recrof/tlora_1.6_cleanup

TLora V2.1 1.6 cleanup
This commit is contained in:
ripplebiz 2025-10-19 14:15:55 +11:00 committed by GitHub
commit 53a2ae97ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 22 deletions

View file

@ -1,24 +0,0 @@
#pragma once
#include <Arduino.h>
#include "ESP32Board.h"
// LILYGO T-LoRa V2.1-1.6 board with SX1276
class LilyGoTLoraBoard : public ESP32Board {
public:
const char* getManufacturerName() const override {
return "LILYGO T-LoRa V2.1-1.6";
}
uint16_t getBattMilliVolts() override {
analogReadResolution(12);
uint32_t raw = 0;
for (int i = 0; i < 8; i++) {
raw += analogReadMilliVolts(PIN_VBAT_READ);
}
raw = raw / 8;
return (2 * raw);
}
};