Snapshot Beep + WAV UI before Pomodoro rewrite.

Keep LEDC tones, TF WAV playback, and compact list layout as a tagged baseline.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-18 18:51:05 +08:00
parent fbb62d3d53
commit b44bd7d3f0
15 changed files with 1295 additions and 150 deletions

23
include/wav_list.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <Arduino.h>
#include <stddef.h>
#include <stdint.h>
static constexpr size_t WAV_MAX = 24;
static constexpr size_t WAV_PATH_MAX = 64;
static constexpr size_t WAV_NAME_MAX = 28;
struct WavTrack {
char path[WAV_PATH_MAX];
char name[WAV_NAME_MAX];
uint32_t bytes;
};
uint8_t wav_list_count();
int8_t wav_list_selected();
void wav_list_set_selected(int8_t idx);
const WavTrack *wav_list_get(uint8_t idx);
const char *wav_list_current_path();
bool wav_list_scan();