Добавлено энергосбережение для увеличения работы от аккума:

- через 60 сек экран выключается и есп уходит в сон
- слейв в ожидании мастера прослушивает не постоянно 20мс/100мс
This commit is contained in:
2026-08-08 10:42:59 +03:00
parent 21f8fe8e13
commit c952c165f8
10 changed files with 173 additions and 7 deletions

View File

@@ -9,7 +9,9 @@ class Display {
bool begin();
void show(const char *line1, const char *line2,
uint32_t progress = 0, uint32_t progressTotal = 0);
void setPower(bool enabled);
bool available() const { return ok_; }
bool powered() const { return powered_; }
static void formatFrequency(float hz, char *out, size_t size);
static void formatTestFrequency(uint32_t hz, char *out, size_t size);
static void formatDuration(uint64_t us, char *out, size_t size);
@@ -17,4 +19,5 @@ class Display {
void fit(char *text);
Adafruit_SSD1306 oled_;
bool ok_ = false;
bool powered_ = false;
};