Files
Flipdot-display/src/esp32/logic/builtin_pages.h
T

21 lines
936 B
C
Raw Normal View History

#pragma once
#include "logic/page.h"
// The original dynamic pages. display/page_store stores a copy of each at boot that can be
// edited; the original is the fallback (deleting the copy resets the page).
//
2026-10-20 17:52:25 +02:00
// Clock Pikachu with the time in a thought bubble, yawning from 17:00 (the clock
// of the old firmware; also the default page)
// Game of Life Conway's Game of Life on the whole display: the life_ icons (the
// patterns of the Icons tab) in random order, random dots without them
#define BUILTIN_PAGE_CLOCK "Clock"
2026-10-20 17:52:25 +02:00
#define BUILTIN_PAGE_LIFE "Game of Life"
int builtinPageCount();
const char *builtinPageName(int index);
// The built-in name as it is written, nullptr when it is no built-in page
const char *builtinPageName(const char *name);
// False when there is no built-in page with this name (compared without case)
bool builtinPage(const char *name, DynamicPage &page);