Коррекция уровня оптики, вкл по умолчанию, выкл в сне
плюс коррекции по отображению
This commit is contained in:
@@ -8,7 +8,8 @@ class Display {
|
||||
Display();
|
||||
bool begin();
|
||||
void show(const char *line1, const char *line2,
|
||||
uint32_t progress = 0, uint32_t progressTotal = 0);
|
||||
uint32_t progress = 0, uint32_t progressTotal = 0,
|
||||
const char *topRight = nullptr);
|
||||
void setPower(bool enabled);
|
||||
bool available() const { return ok_; }
|
||||
bool powered() const { return powered_; }
|
||||
@@ -16,7 +17,7 @@ class Display {
|
||||
static void formatTestFrequency(uint32_t hz, char *out, size_t size);
|
||||
static void formatDuration(uint64_t us, char *out, size_t size);
|
||||
private:
|
||||
void drawTextLine(const char *text, int16_t y);
|
||||
void drawTextLine(const char *text, int16_t y, int16_t startX = 0);
|
||||
Adafruit_SSD1306 oled_;
|
||||
bool ok_ = false;
|
||||
bool powered_ = false;
|
||||
|
||||
Reference in New Issue
Block a user