config.h 1.1 KB

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