2022-01-08 18:32:31 +08:00
|
|
|
#ifndef __IMAGE__
|
|
|
|
#define __IMAGE__
|
|
|
|
|
|
|
|
#include <sys/pgmspace.h>
|
|
|
|
#include <SSD1306Wire.h>
|
|
|
|
#include <OLEDDisplayUi.h>
|
|
|
|
|
2022-01-09 01:19:45 +08:00
|
|
|
const uint8_t Active_Symbol_Icon[] PROGMEM = {
|
2022-01-08 18:32:31 +08:00
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00011000,
|
|
|
|
B00100100,
|
|
|
|
B01000010,
|
|
|
|
B01000010,
|
|
|
|
B00100100,
|
|
|
|
B00011000
|
|
|
|
};
|
|
|
|
|
2022-01-09 01:19:45 +08:00
|
|
|
const uint8_t Inactive_Symbol_Icon[] PROGMEM = {
|
2022-01-08 18:32:31 +08:00
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00011000,
|
|
|
|
B00011000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
};
|
|
|
|
|
2022-01-09 16:53:22 +08:00
|
|
|
void oledTitle(OLEDDisplay *display, String s, int16_t x, int16_t y);
|
2022-01-09 01:19:45 +08:00
|
|
|
void oledWebFrame(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y);
|
|
|
|
void oledMQTTFrame(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y);
|
|
|
|
void oledBilibiliFrame(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y);
|
|
|
|
void oledOsFrame(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y);
|
2022-01-08 18:32:31 +08:00
|
|
|
|
2022-01-10 03:15:46 +08:00
|
|
|
extern const uint8_t frameCount;
|
2022-01-08 18:32:31 +08:00
|
|
|
extern FrameCallback frames[];
|
|
|
|
|
2022-01-09 01:19:45 +08:00
|
|
|
void timeOverlay(OLEDDisplay *display, OLEDDisplayUiState* state);
|
2022-01-08 18:32:31 +08:00
|
|
|
|
2022-01-10 03:15:46 +08:00
|
|
|
extern const uint8_t overlaysCount;
|
2022-01-08 18:32:31 +08:00
|
|
|
extern OverlayCallback overlays[];
|
|
|
|
|
|
|
|
#endif
|