custom_lcd_display.h 720 B

1234567891011121314151617181920
  1. #ifndef __CUSTOM_LCD_DISPLAY_H__
  2. #define __CUSTOM_LCD_DISPLAY_H__
  3. #include "lcd_display.h"
  4. // // SPI LCD显示器
  5. class CustomLcdDisplay : public LcdDisplay {
  6. public:
  7. CustomLcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
  8. int width, int height, int offset_x, int offset_y,
  9. bool mirror_x, bool mirror_y, bool swap_xy,
  10. DisplayFonts fonts);
  11. private:
  12. static bool lvgl_port_flush_io_ready_callback(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_io_event_data_t *edata, void *user_ctx);
  13. static void lvgl_port_flush_callback(lv_display_t *drv, const lv_area_t *area, uint8_t *color_map);
  14. };
  15. #endif // __CUSTOM_LCD_DISPLAY_H__