Files
tftest/include/audio_test.h
DESKTOP-PUHFO60\dsx2016 a1ab088d70 Restore TF card UI and speaker at 20% volume.
Keep calibrated SoftSPI touch mapping unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 18:43:11 +08:00

21 lines
337 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <Arduino.h>
void audio_init();
void audio_set_enabled(bool on);
bool audio_is_enabled();
// 音量 0–100,默认 20
void audio_set_volume(uint8_t percent);
uint8_t audio_get_volume();
void audio_play_music();
void audio_stop();
bool audio_is_playing();
void audio_tick();
const char *audio_last_status();