config.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_I2S_GPIO_MCLK GPIO_NUM_3
  7. #define AUDIO_I2S_GPIO_WS GPIO_NUM_9
  8. #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_46
  9. #define AUDIO_I2S_GPIO_DIN GPIO_NUM_14
  10. #define AUDIO_I2S_GPIO_DOUT GPIO_NUM_10
  11. #define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_41
  12. #define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_42
  13. #define AUDIO_CODEC_ES8388_ADDR ES8388_CODEC_DEFAULT_ADDR
  14. #define BOOT_BUTTON_GPIO GPIO_NUM_0
  15. #define BUILTIN_LED_GPIO GPIO_NUM_1
  16. #define LCD_SCLK_PIN GPIO_NUM_12
  17. #define LCD_MOSI_PIN GPIO_NUM_11
  18. #define LCD_MISO_PIN GPIO_NUM_13
  19. #define LCD_DC_PIN GPIO_NUM_40
  20. #define LCD_CS_PIN GPIO_NUM_21
  21. #define DISPLAY_WIDTH 320
  22. #define DISPLAY_HEIGHT 240
  23. #define DISPLAY_MIRROR_X true
  24. #define DISPLAY_MIRROR_Y false
  25. #define DISPLAY_SWAP_XY true
  26. #define DISPLAY_OFFSET_X 0
  27. #define DISPLAY_OFFSET_Y 0
  28. #define DISPLAY_BACKLIGHT_PIN GPIO_NUM_NC
  29. #define DISPLAY_BACKLIGHT_OUTPUT_INVERT true
  30. #endif // _BOARD_CONFIG_H_