config.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _BOARD_CONFIG_H_
  2. #define _BOARD_CONFIG_H_
  3. #include <driver/gpio.h>
  4. #define AUDIO_INPUT_SAMPLE_RATE 16000
  5. #define AUDIO_OUTPUT_SAMPLE_RATE 16000
  6. #define AUDIO_INPUT_REFERENCE CONFIG_USE_AUDIO_PROCESSOR
  7. #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_2
  8. #define AUDIO_I2S_GPIO_WS GPIO_NUM_47
  9. #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_17
  10. #define AUDIO_I2S_GPIO_DIN GPIO_NUM_16
  11. #define AUDIO_I2S_GPIO_DOUT GPIO_NUM_15
  12. #define AUDIO_CODEC_PA_PIN GPIO_NUM_46
  13. #define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_8
  14. #define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_18
  15. #define BUILTIN_LED_GPIO GPIO_NUM_NC
  16. #define BOOT_BUTTON_GPIO GPIO_NUM_0
  17. #define VOLUME_UP_BUTTON_GPIO GPIO_NUM_NC
  18. #define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC
  19. #define DISPLAY_WIDTH 320
  20. #define DISPLAY_HEIGHT 240
  21. #define DISPLAY_MIRROR_X false
  22. #define DISPLAY_MIRROR_Y true
  23. #define DISPLAY_SWAP_XY false
  24. #define DISPLAY_OFFSET_X 0
  25. #define DISPLAY_OFFSET_Y 0
  26. #define DISPLAY_BACKLIGHT_PIN GPIO_NUM_45
  27. #define DISPLAY_BACKLIGHT_OUTPUT_INVERT true
  28. #endif // _BOARD_CONFIG_H_