2026-10-13 01:34:04 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "BROSE9323.h"
|
|
|
|
|
#include "nano_link/nano_link.h"
|
|
|
|
|
|
|
|
|
|
// Short messages for situations outside the normal clock: booting, crashes, recovery app.
|
|
|
|
|
// Used by both the clock firmware and the recovery app.
|
|
|
|
|
class StatusScreen
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
StatusScreen(BROSE9323 &display, NanoLink &nano);
|
|
|
|
|
|
|
|
|
|
// Power the display on, show up to two lines (TEXT_LINE_CHARS each). Unless keep_on,
|
|
|
|
|
// power off again once the dots have flipped: flipdots keep their image without power.
|
|
|
|
|
void show(const char *line1, const char *line2, bool keep_on = false);
|
|
|
|
|
|
2026-10-13 01:52:34 +02:00
|
|
|
// Flip time sent to the Nano with the first message (default FLIP_TIME)
|
|
|
|
|
void setFlipTime(uint16_t flip_time);
|
|
|
|
|
|
2026-10-13 01:34:04 +02:00
|
|
|
private:
|
|
|
|
|
BROSE9323 &_display;
|
|
|
|
|
NanoLink &_nano;
|
|
|
|
|
bool _started = false;
|
2026-10-13 01:52:34 +02:00
|
|
|
uint16_t _flip_time;
|
2026-10-13 01:34:04 +02:00
|
|
|
};
|