config.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _BOARD_CONFIG_H_
  2. #define _BOARD_CONFIG_H_
  3. #include <driver/gpio.h>
  4. #define AUDIO_INPUT_SAMPLE_RATE 16000
  5. #define AUDIO_OUTPUT_SAMPLE_RATE 24000
  6. #define AUDIO_ADC_MIC_CHANNEL 2
  7. #define AUDIO_PDM_SPEAK_P_GPIO GPIO_NUM_6
  8. #define AUDIO_PDM_SPEAK_N_GPIO GPIO_NUM_7
  9. #define AUDIO_PA_CTL_GPIO GPIO_NUM_3
  10. #define BUILTIN_LED_GPIO GPIO_NUM_NC
  11. #define BOOT_BUTTON_GPIO GPIO_NUM_9
  12. #define MOVE_WAKE_BUTTON_GPIO GPIO_NUM_0
  13. #define AUDIO_WAKE_BUTTON_GPIO GPIO_NUM_1
  14. #define DISPLAY_MOSI_PIN GPIO_NUM_4
  15. #define DISPLAY_CLK_PIN GPIO_NUM_5
  16. #define DISPLAY_DC_PIN GPIO_NUM_10
  17. #define DISPLAY_RST_PIN GPIO_NUM_NC
  18. #define DISPLAY_CS_PIN GPIO_NUM_NC
  19. #define FL_GPIO_NUM GPIO_NUM_21
  20. #define FR_GPIO_NUM GPIO_NUM_19
  21. #define BL_GPIO_NUM GPIO_NUM_20
  22. #define BR_GPIO_NUM GPIO_NUM_18
  23. #define LCD_TYPE_ST7789_SERIAL
  24. #define DISPLAY_WIDTH 160
  25. #define DISPLAY_HEIGHT 80
  26. #define DISPLAY_MIRROR_X false
  27. #define DISPLAY_MIRROR_Y true
  28. #define DISPLAY_SWAP_XY true
  29. #define DISPLAY_INVERT_COLOR true
  30. #define DISPLAY_RGB_ORDER LCD_RGB_ELEMENT_ORDER_RGB
  31. #define DISPLAY_OFFSET_X 0
  32. #define DISPLAY_OFFSET_Y 0
  33. #define DISPLAY_BACKLIGHT_OUTPUT_INVERT false
  34. #define DISPLAY_SPI_MODE 0
  35. #endif // _BOARD_CONFIG_H_