Upgrade public source code to version 1.0.1332. New boards support

This commit is contained in:
Dmitry
2025-11-14 17:33:20 -05:00
parent 668a86f291
commit af5732e71b
26 changed files with 832 additions and 140 deletions

View File

@@ -1,6 +1,9 @@
#pragma once
#include "concurrency/PeriodicTask.h"
#include "PowerStatus.h"
#ifdef USE_XPOWERSLIB
#include <XPowersLib.h>
#endif
#define MIN_BAT_MILLIVOLTS 3250 // millivolts. 10% per https://blog.ampow.com/lipo-voltage-chart/
@@ -17,6 +20,10 @@ class Power : public concurrency::PeriodicTask
protected:
AXP20X_Class axp;
#endif
#ifdef USE_XPOWERSLIB
XPowersLibInterface *m_power;
bool m_pmuFound;
#endif
public:
Observable<const PowerStatus *> newStatus;