| 12345678910111213141516171819202122232425 |
- //
- // Created by kindring on 2025/12/26.
- //
- #ifndef YUNTUNE_APP_IO_H
- #define YUNTUNE_APP_IO_H
- #include "driver/gpio.h"
- #include "app_manager.h"
- // 功放使能引脚 低有效
- #define IO_AMP_EN GPIO_NUM_32
- // 状态显示LED
- #define IO_LED GPIO_NUM_15
- // 按钮引脚
- #define IO_BTN GPIO_NUM_2
- // 输出选择引脚 1:AUX 0:蓝牙
- #define IO_OUTPUT_SW GPIO_NUM_19
- esp_err_t set_led_io(const bool on);
- esp_err_t enable_amp(const bool on);
- esp_err_t update_output_mode(audio_mode_t mode);
- int init_io(audio_mode_t mode);
- #endif //YUNTUNE_APP_IO_H
|