rak3x72: support variations in platformio.ini

这个提交包含在:
Florent
2025-06-25 13:55:54 +02:00
父节点 816f3f8a6b
当前提交 387579922b
修改 3 个文件,包含 18 行新增5 行删除
+6 -2
查看文件
@@ -18,8 +18,12 @@ public:
}
uint16_t getBattMilliVolts() override {
uint32_t raw = analogRead(PIN_VBAT_READ);
return (ADC_MULTIPLIER * raw) / 1024;
analogReadResolution(12);
uint32_t raw = 0;
for (int i=0; i<8;i++) {
raw += analogRead(PIN_VBAT_READ);
}
return ((double)raw) * ADC_MULTIPLIER / 8 / 4096;
}
};