Public Access
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
// Your Name (Kimi no Na wa)-themed animated pages for the ESPHome display: the
|
|||
|
|
// comet splitting over Itomori's lake, and kataware-doki, the twilight hour,
|
||
|
|
// counting down to sunset from Home Assistant's sun. Fan art: the pixel art
|
||
|
|
// (yourname_sprites.h, from tools/yourname_sprites.py), drawings and texts
|
||
|
|
// are original.
|
||
|
|
//
|
||
|
|
// Each function draws a whole page. Call it from a page lambda and list that
|
||
|
|
// page under animated_pages; the animation clock is the display's page_age_ms().
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "el512_pages.h"
|
||
|
|
#include "esphome/components/display/display.h"
|
||
|
|
#include "esphome/core/time.h"
|
||
|
|
|
||
|
|
namespace esphome::el512 {
|
||
|
|
|
||
|
|
class EL512Display;
|
||
|
|
|
||
|
|
namespace yourname {
|
||
|
|
|
||
|
|
struct Fonts {
|
||
|
|
display::BaseFont *jp{nullptr}; // brush lettering (Yuji Syuku)
|
||
|
|
display::BaseFont *hand{nullptr}; // handwriting (Caveat)
|
||
|
|
display::BaseFont *clock{nullptr}; // clock digits (Cormorant Garamond)
|
||
|
|
display::BaseFont *mono{nullptr}; // small print (Share Tech Mono 14)
|
||
|
|
};
|
||
|
|
|
||
|
|
void comet(EL512Display &it, const Fonts &f, const HomeData &d, ESPTime now);
|
||
|
|
void twilight(EL512Display &it, const Fonts &f, const HomeData &d, ESPTime now);
|
||
|
|
|
||
|
|
} // namespace yourname
|
||
|
|
} // namespace esphome::el512
|