Public Access
Interstellar: Gargantua with a time dilation clock (Earth today vs. Miller's planet), TARS with his settings and remarks about the house, the Endurance spinning at a solar-driven RPM while a Ranger docks, and the tesseract's bookshelf with the time in binary dust and the Message's first word in Morse on a watch. Your Name: comet Tiamat splitting over Itomori's lake, and kataware-doki, a countdown to sunset from sun.sun where two silhouettes stand on the crater rim during the twilight hour. HomeData gains sunset, sunrise and sun elevation (with an ISO time parser); wrap() and typed() move to el512_pages.h. Share Tech Mono 22 gets the full Latin set. All pages are in the renderer, checked with normal, busy and empty data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.2 KiB
C++
33 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
|