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_39
  7. #define AUDIO_I2S_GPIO_WS GPIO_NUM_42
  8. #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_41
  9. #define AUDIO_I2S_GPIO_DIN GPIO_NUM_40
  10. #define AUDIO_I2S_GPIO_DOUT GPIO_NUM_38
  11. #define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_44
  12. #define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_43
  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_36
  17. #define LCD_MOSI_PIN GPIO_NUM_37
  18. #define LCD_MISO_PIN GPIO_NUM_NC
  19. #define LCD_DC_PIN GPIO_NUM_35
  20. #define LCD_CS_PIN GPIO_NUM_NC
  21. #define DISPLAY_WIDTH 320
  22. #define DISPLAY_HEIGHT 172
  23. #define DISPLAY_MIRROR_X true
  24. #define DISPLAY_MIRROR_Y true
  25. #define DISPLAY_SWAP_XY true
  26. #define DISPLAY_OFFSET_X 0
  27. #define DISPLAY_OFFSET_Y 34
  28. #define DISPLAY_BACKLIGHT_PIN GPIO_NUM_34
  29. #define DISPLAY_BACKLIGHT_OUTPUT_INVERT false
  30. #endif // _BOARD_CONFIG_H_