Ship TF-card album UI, half-res decode canvas, prebuilt firmware, and documented flash/upload workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
392 B
C
22 lines
392 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
static constexpr int PHOTO_MAX = 64;
|
|
static constexpr int PHOTO_PATH_MAX = 96;
|
|
|
|
enum PhotoKind : uint8_t {
|
|
PHOTO_JPG = 0,
|
|
PHOTO_PNG = 1,
|
|
PHOTO_GIF = 2,
|
|
};
|
|
|
|
struct PhotoEntry {
|
|
char path[PHOTO_PATH_MAX];
|
|
PhotoKind kind;
|
|
};
|
|
|
|
uint16_t photo_list_count();
|
|
const PhotoEntry *photo_list_get(uint16_t index);
|
|
uint16_t photo_list_scan(); // returns count
|