Прошло 2 года.

This commit is contained in:
Кобелев Андрей Андреевич
2026-03-10 22:54:23 +03:00
parent c7636ebd6f
commit a111352dc5
313 changed files with 274971 additions and 1409 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include "epdiy.h"
namespace ui {
struct BatteryProps {
bool valid;
int percent;
};
class BatteryView {
public:
void layout(int screen_width, int screen_height);
void render(uint8_t* framebuffer, const BatteryProps& props) const;
const EpdRect& bounds() const;
private:
EpdRect bounds_ = {0, 0, 0, 0};
int text_x_ = 0;
int text_y_ = 0;
};
} // namespace ui