app_io.h 593 B

12345678910111213141516171819202122232425
  1. //
  2. // Created by kindring on 2025/12/26.
  3. //
  4. #ifndef YUNTUNE_APP_IO_H
  5. #define YUNTUNE_APP_IO_H
  6. #include "driver/gpio.h"
  7. #include "app_manager.h"
  8. // 功放使能引脚 低有效
  9. #define IO_AMP_EN GPIO_NUM_32
  10. // 状态显示LED
  11. #define IO_LED GPIO_NUM_15
  12. // 按钮引脚
  13. #define IO_BTN GPIO_NUM_2
  14. // 输出选择引脚 1:AUX 0:蓝牙
  15. #define IO_OUTPUT_SW GPIO_NUM_19
  16. esp_err_t set_led_io(const bool on);
  17. esp_err_t enable_amp(const bool on);
  18. esp_err_t update_output_mode(audio_mode_t mode);
  19. int init_io(audio_mode_t mode);
  20. #endif //YUNTUNE_APP_IO_H