config.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_WS GPIO_NUM_13
  7. #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_21
  8. #define AUDIO_I2S_GPIO_DIN GPIO_NUM_47
  9. #define AUDIO_I2S_GPIO_DOUT GPIO_NUM_14
  10. #define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR
  11. #define BUILTIN_LED_GPIO GPIO_NUM_4
  12. #define BOOT_BUTTON_GPIO GPIO_NUM_0
  13. #define DISPLAY_OFFSET_X 0
  14. #define DISPLAY_OFFSET_Y 0
  15. #define DISPLAY_WIDTH 320
  16. #define DISPLAY_HEIGHT 240
  17. #define DISPLAY_SWAP_XY true
  18. #define DISPLAY_MIRROR_X true
  19. #define DISPLAY_MIRROR_Y false
  20. #define DISPLAY_BACKLIGHT_PIN GPIO_NUM_NC
  21. #define DISPLAY_BACKLIGHT_OUTPUT_INVERT true
  22. // Pin Definitions
  23. #define LCD_NUM_CS GPIO_NUM_1
  24. #define LCD_NUM_DC GPIO_NUM_2
  25. #define LCD_NUM_RD GPIO_NUM_41
  26. #define LCD_NUM_WR GPIO_NUM_42
  27. #define LCD_NUM_RST GPIO_NUM_NC
  28. #define GPIO_LCD_D0 GPIO_NUM_40
  29. #define GPIO_LCD_D1 GPIO_NUM_39
  30. #define GPIO_LCD_D2 GPIO_NUM_38
  31. #define GPIO_LCD_D3 GPIO_NUM_12
  32. #define GPIO_LCD_D4 GPIO_NUM_11
  33. #define GPIO_LCD_D5 GPIO_NUM_10
  34. #define GPIO_LCD_D6 GPIO_NUM_9
  35. #define GPIO_LCD_D7 GPIO_NUM_46
  36. #endif // _BOARD_CONFIG_H_