Enable SoftSPI touch, replace auto beeps with Speaker ON/OFF and Play Music controls, and document usage. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
380 B
C
20 lines
380 B
C
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
void audio_init();
|
|
|
|
// 扬声器总开关(关则静音并停止播放)
|
|
void audio_set_enabled(bool on);
|
|
bool audio_is_enabled();
|
|
|
|
// 开始/停止内置音乐(非阻塞,在 audio_tick 推进)
|
|
void audio_play_music();
|
|
void audio_stop();
|
|
bool audio_is_playing();
|
|
|
|
// 主循环调用
|
|
void audio_tick();
|
|
|
|
const char *audio_last_status();
|