Files
Flipdot-display/src/esp32/display/frames.h
T

34 lines
928 B
C++
Raw Normal View History

#pragma once
#include "BROSE9323.h"
2026-10-13 01:52:34 +02:00
#include "logic/bitmap_format.h"
#include "logic/display_controller.h"
// Draws the screens on the flipdot display. Each method sends one complete frame.
class FlipdotFrames : public Frames
{
public:
explicit FlipdotFrames(BROSE9323 &display);
// Pikachu with a thought bubble showing HH:MM (yawning in the evening)
2026-10-13 01:52:34 +02:00
void clock(int hour, int minute, bool evening) override;
2026-10-13 01:34:04 +02:00
// "No WiFi" with the time below it
void noWifi(int hour, int minute) override;
2026-10-13 01:52:34 +02:00
// The bitmap set with setPageBitmap()
void page() override;
// The image set with setLiveBitmap()
void live() override;
// Nintendo logo
void logo() override;
void blank() override;
2026-10-13 01:52:34 +02:00
void setPageBitmap(const uint8_t *bitmap);
void setLiveBitmap(const uint8_t *bitmap);
private:
BROSE9323 &_display;
2026-10-13 01:52:34 +02:00
uint8_t _page[BITMAP_BYTES] = {};
uint8_t _live[BITMAP_BYTES] = {};
void _drawFullScreen(const uint8_t *bitmap);
};