Files
esp32vga/vga_test/main/content.h
T
jimmyandClaude Opus 5.5 c307f08de8 Add ESP32-S3 VGA firmware with web interface
800x600 RGB332 VGA output for the XIAO ESP32S3 Plus, double buffered in
PSRAM. Includes content modes (test pattern, plasma, stars, clock,
Mandelbrot, message, images, Halloween, Haunting), a flash image gallery,
WiFi AP+STA web UI and OTA updates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 22:05:32 +13:00

15 lines
620 B
C

#pragma once
#include "app.h"
// The display task calls enter() once when the content is selected (the whole
// canvas is then copied to both buffers), then every frame tick() followed by
// draw() on the buffer being prepared. Any of them may be NULL.
typedef struct {
void (*enter)(const show_t *s); // draw static parts into the canvas
void (*tick)(void); // update the canvas; mark changes with canvas_dirty()
bool (*draw)(uint8_t *fb, int buf); // draw into the frame buffer; true if it changed
} content_ops_t;
const content_ops_t *content_ops(content_id_t c);