You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
809 B

3 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include "esp_log.h"
  4. #include "screen_driver.h"
  5. #define BOARD_LCD_MOSI 47
  6. #define BOARD_LCD_MISO -1
  7. #define BOARD_LCD_SCK 21
  8. #define BOARD_LCD_CS 44
  9. #define BOARD_LCD_DC 43
  10. #define BOARD_LCD_RST -1
  11. #define BOARD_LCD_BL 48
  12. #define BOARD_LCD_PIXEL_CLOCK_HZ (40 * 1000 * 1000)
  13. #define BOARD_LCD_BK_LIGHT_ON_LEVEL 0
  14. #define BOARD_LCD_BK_LIGHT_OFF_LEVEL !BOARD_LCD_BK_LIGHT_ON_LEVEL
  15. #define BOARD_LCD_H_RES 240
  16. #define BOARD_LCD_V_RES 240
  17. #define BOARD_LCD_CMD_BITS 8
  18. #define BOARD_LCD_PARAM_BITS 8
  19. #define LCD_HOST SPI2_HOST
  20. #ifdef __cplusplus
  21. extern "C"
  22. {
  23. #endif
  24. esp_err_t register_lcd(const QueueHandle_t frame_i, const QueueHandle_t frame_o, const bool return_fb);
  25. void app_lcd_draw_wallpaper();
  26. void app_lcd_set_color(int color);
  27. #ifdef __cplusplus
  28. }
  29. #endif