config.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /* 相机引脚配置 */
  31. #define CAM_PIN_PWDN GPIO_NUM_NC
  32. #define CAM_PIN_RESET GPIO_NUM_NC
  33. #define CAM_PIN_VSYNC GPIO_NUM_47
  34. #define CAM_PIN_HREF GPIO_NUM_48
  35. #define CAM_PIN_PCLK GPIO_NUM_45
  36. #define CAM_PIN_XCLK GPIO_NUM_NC
  37. #define CAM_PIN_SIOD GPIO_NUM_39
  38. #define CAM_PIN_SIOC GPIO_NUM_38
  39. #define CAM_PIN_D0 GPIO_NUM_4
  40. #define CAM_PIN_D1 GPIO_NUM_5
  41. #define CAM_PIN_D2 GPIO_NUM_6
  42. #define CAM_PIN_D3 GPIO_NUM_7
  43. #define CAM_PIN_D4 GPIO_NUM_15
  44. #define CAM_PIN_D5 GPIO_NUM_16
  45. #define CAM_PIN_D6 GPIO_NUM_17
  46. #define CAM_PIN_D7 GPIO_NUM_18
  47. #define OV_PWDN_IO 4
  48. #define OV_RESET_IO 5
  49. #endif // _BOARD_CONFIG_H_