Add base battery 🔋 class, Add Lipo, Lion class

This commit is contained in:
Maximilian Mewes
2023-01-05 19:48:53 +01:00
parent 66406d86c1
commit 8dd1745149
5 changed files with 290 additions and 179 deletions

View File

@@ -14,6 +14,15 @@
#define USERMOD_BATTERY_MEASUREMENT_INTERVAL 30000
#endif
/* Default Battery Type
* 1 = Lipo
* 2 = Lion
*/
#ifndef USERMOB_BATTERY_DEFAULT_TYPE
#define USERMOB_BATTERY_DEFAULT_TYPE 1
#endif
// default for 18650 battery
// https://batterybro.com/blogs/18650-wholesale-battery-reviews/18852515-when-to-recycle-18650-batteries-and-how-to-start-a-collection-center-in-your-vape-shop
// Discharge voltage: 2.5 volt + .1 for personal safety
@@ -69,4 +78,4 @@
#ifndef USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION
#define USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION 5
#endif
#endif