Files
QingLong/XiaoZhi/xiaozhi-esp32/main/boards/doit-s3-aibox/config.h
2025-08-15 09:13:13 +08:00

30 lines
821 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.

#ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#define AUDIO_INPUT_SAMPLE_RATE 16000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_41
#define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_40
#define AUDIO_I2S_MIC_GPIO_DIN GPIO_NUM_42
#define AUDIO_I2S_SPK_GPIO_DOUT GPIO_NUM_18
#define AUDIO_I2S_SPK_GPIO_BCLK GPIO_NUM_17
#define AUDIO_I2S_SPK_GPIO_LRCK GPIO_NUM_16
/*
IO9: BUTTON2
IO10: BUTTON3 引出KEY3
IO15: BUTTON1
*/
#define BUILTIN_LED_GPIO GPIO_NUM_45
#define BOOT_BUTTON_GPIO GPIO_NUM_10
#define TOUCH_BUTTON_GPIO GPIO_NUM_NC
#define VOLUME_UP_BUTTON_GPIO GPIO_NUM_15
#define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_9
#define RESET_NVS_BUTTON_GPIO GPIO_NUM_10
#define RESET_FACTORY_BUTTON_GPIO GPIO_NUM_NC
#endif // _BOARD_CONFIG_H_