Add GPIO26 speaker beep and melody test.

Play audio on boot and every 12s via the onboard amp; show status on the LVGL UI and document pins.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 17:30:39 +08:00
parent 23956897fa
commit 82e1ace24f
8 changed files with 132 additions and 18 deletions

10
include/audio_test.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
#include <Arduino.h>
void audio_init();
// 短测:三声蜂鸣(开机 / 周期测试)
void audio_play_beep_sequence();
// 简短旋律(约 1.5s)
void audio_play_melody();
const char *audio_last_status();