reorder menu and add sound settings
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m18s
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m18s
This commit is contained in:
@@ -90,7 +90,46 @@ esp_err_t buzzer_play_sound(buzzer_sound_t sound);
|
||||
/**
|
||||
* @brief Play a custom sequence of notes synchronously.
|
||||
*/
|
||||
esp_err_t buzzer_play_notes(const buzzer_note_t *notes, size_t count);
|
||||
typedef enum {
|
||||
AUDIO_PROFILE_CHIPTUNE = 0, /* Full 8-bit melodies & arcade fanfares */
|
||||
AUDIO_PROFILE_TACTILE = 1, /* Soft micro-clicks & subtle clean chimes */
|
||||
AUDIO_PROFILE_SILENT = 2, /* Mute all sound */
|
||||
} audio_profile_t;
|
||||
|
||||
/**
|
||||
* @brief Set the active audio profile and persist to NVS.
|
||||
*/
|
||||
void buzzer_set_profile(audio_profile_t profile);
|
||||
|
||||
/**
|
||||
* @brief Get the active audio profile.
|
||||
*/
|
||||
audio_profile_t buzzer_get_profile(void);
|
||||
|
||||
/**
|
||||
* @brief Get human-readable string for audio profile.
|
||||
*/
|
||||
const char *buzzer_get_profile_name(audio_profile_t profile);
|
||||
|
||||
/**
|
||||
* @brief Pitch-up feedback when gaining life.
|
||||
*/
|
||||
void buzzer_sound_life_gain(void);
|
||||
|
||||
/**
|
||||
* @brief Pitch-down feedback when losing life.
|
||||
*/
|
||||
void buzzer_sound_life_loss(void);
|
||||
|
||||
/**
|
||||
* @brief Clean notification chime when RFID card is tapped.
|
||||
*/
|
||||
void buzzer_sound_rfid_tap(void);
|
||||
|
||||
/**
|
||||
* @brief Subtle encoder rotary detent click.
|
||||
*/
|
||||
void buzzer_sound_tick(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user