forked from xiaozhi/xiaozhi-esp32
* Adapt boards to v2 partition tables * fix esp log error * fix display style * reset emotion after download assets * fix compiling * update assets default url * Add user only tools * Add image cache * smaller cache and buffer, more heap * use MAIN_EVENT_CLOCK_TICK to avoid audio glitches * bump to 2.0.0 * fix compiling errors --------- Co-authored-by: Xiaoxia <terrence.huang@tenclass.com>
20 lines
720 B
C++
20 lines
720 B
C++
#ifndef __CUSTOM_LCD_DISPLAY_H__
|
|
#define __CUSTOM_LCD_DISPLAY_H__
|
|
|
|
#include "lcd_display.h"
|
|
|
|
// // SPI LCD显示器
|
|
class CustomLcdDisplay : public LcdDisplay {
|
|
public:
|
|
CustomLcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
|
|
int width, int height, int offset_x, int offset_y,
|
|
bool mirror_x, bool mirror_y, bool swap_xy,
|
|
DisplayStyle style);
|
|
private:
|
|
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);
|
|
static void lvgl_port_flush_callback(lv_display_t *drv, const lv_area_t *area, uint8_t *color_map);
|
|
};
|
|
|
|
|
|
|
|
#endif // __CUSTOM_LCD_DISPLAY_H__
|