forked from xiaozhi/xiaozhi-esp32
Add board: ESP-Spot (#460)
* feat: add ESP-Spot S3 Co-authored-by: Tang Yumei <tangyumei@espressif.com> * feat: add button and power control long press KEY to shut down. * feat: change for s3 adc * fix: adc cali fail * add ESP-Spot S3 Readme * fix ES8311 config --------- Co-authored-by: Liu Ruichao <liuruichao@espressif.com>
This commit is contained in:
35
main/boards/esp-spot-s3/config.h
Normal file
35
main/boards/esp-spot-s3/config.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef _BOARD_CONFIG_H_
|
||||
#define _BOARD_CONFIG_H_
|
||||
|
||||
#include <driver/gpio.h>
|
||||
|
||||
#define AUDIO_INPUT_SAMPLE_RATE 16000
|
||||
#define AUDIO_OUTPUT_SAMPLE_RATE 16000
|
||||
|
||||
#define AUDIO_INPUT_REFERENCE false
|
||||
|
||||
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_8
|
||||
#define AUDIO_I2S_GPIO_WS GPIO_NUM_17
|
||||
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_16
|
||||
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_15
|
||||
#define AUDIO_I2S_GPIO_DOUT GPIO_NUM_18
|
||||
|
||||
#define AUDIO_CODEC_PA_PIN GPIO_NUM_40
|
||||
#define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_2
|
||||
#define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_1
|
||||
#define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR
|
||||
|
||||
#define BOOT_BUTTON_GPIO GPIO_NUM_0
|
||||
#define KEY_BUTTON_GPIO GPIO_NUM_12
|
||||
#define LED_PIN GPIO_NUM_11
|
||||
|
||||
#define VBAT_ADC_CHANNEL ADC_CHANNEL_9 // S3: IO10
|
||||
#define MCU_VCC_CTL GPIO_NUM_4 // set 1 to power on MCU
|
||||
#define PERP_VCC_CTL GPIO_NUM_6 // set 1 to power on peripherals
|
||||
|
||||
#define ADC_ATTEN ADC_ATTEN_DB_12
|
||||
#define ADC_WIDTH ADC_BITWIDTH_DEFAULT
|
||||
#define FULL_BATTERY_VOLTAGE 4100
|
||||
#define EMPTY_BATTERY_VOLTAGE 3200
|
||||
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
Reference in New Issue
Block a user