config.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _BOARD_CONFIG_H_
  2. #define _BOARD_CONFIG_H_
  3. #include <driver/gpio.h>
  4. #define AUDIO_INPUT_SAMPLE_RATE 24000
  5. #define AUDIO_OUTPUT_SAMPLE_RATE 24000
  6. #define AUDIO_INPUT_REFERENCE false
  7. #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_19
  8. #define AUDIO_I2S_GPIO_WS GPIO_NUM_22
  9. #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_21
  10. #define AUDIO_I2S_GPIO_DIN GPIO_NUM_20
  11. #define AUDIO_I2S_GPIO_DOUT GPIO_NUM_23
  12. #define AUDIO_CODEC_PA_PIN GPIO_NUM_NC
  13. #define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_18
  14. #define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_8
  15. #define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR
  16. #define AUDIO_CODEC_ES7210_ADDR ES7210_CODEC_DEFAULT_ADDR
  17. #define I2C_Touch_ADDRESS 0x38
  18. #define I2C_ADDRESS ESP_IO_EXPANDER_I2C_TCA9554_ADDRESS_000
  19. #define BOOT_BUTTON_GPIO GPIO_NUM_9
  20. #define PWR_BUTTON_GPIO GPIO_NUM_2
  21. #define LCD_CS GPIO_NUM_10
  22. #define LCD_PCLK GPIO_NUM_11
  23. #define LCD_D0 GPIO_NUM_4
  24. #define LCD_D1 GPIO_NUM_5
  25. #define LCD_D2 GPIO_NUM_6
  26. #define LCD_D3 GPIO_NUM_7
  27. #define LCD_RST GPIO_NUM_3
  28. #define LCD_LIGHT (-1)
  29. #define EXAMPLE_LCD_H_RES 466
  30. #define EXAMPLE_LCD_V_RES 466
  31. #define DISPLAY_MIRROR_X false
  32. #define DISPLAY_MIRROR_Y false
  33. #define DISPLAY_SWAP_XY false
  34. #define DISPLAY_OFFSET_X 0
  35. #define DISPLAY_OFFSET_Y 0
  36. #endif // _BOARD_CONFIG_H_