first commit

This commit is contained in:
TemanSv1n
2025-12-02 18:52:45 +03:00
commit bdda481bff
202 changed files with 73723 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include <Arduino.h>
class BatteryManagement {
public:
float pureVolt = 0;
int getBatteryPercentage5V();
int getBatteryPercentage(int max);
bool isChargingMode();
private:
int analogInPin = A0;
int sensorValue;
float calibration;
int lastMillisBatt = 0;
float bat_percentage = 65;
float mapfloat(float x, float in_min, float in_max, float out_min, float out_max);
};