From d2082db29fc73cc911fdf31621af3e3dd998787b Mon Sep 17 00:00:00 2001 From: doudou <1491766334@qq.com> Date: Mon, 29 Jan 2024 18:35:19 +0800 Subject: [PATCH] =?UTF-8?q?add:1=EF=BC=9A=E6=94=AF=E6=8C=81nv3037=EF=BC=8C?= =?UTF-8?q?=202=EF=BC=9Aluat=20service=E5=A2=9E=E5=8A=A0=E9=80=82=E9=85=8D?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/lcd/luat_lcd.h | 1 + components/lcd/luat_lib_lcd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/components/lcd/luat_lcd.h b/components/lcd/luat_lcd.h index c3c3a3d40..f1c64382b 100644 --- a/components/lcd/luat_lcd.h +++ b/components/lcd/luat_lcd.h @@ -145,6 +145,7 @@ int luat_lcd_set_direction(luat_lcd_conf_t* conf, uint8_t direction); void luat_lcd_service_init(uint32_t pro); void luat_lcd_service_run(void *api, void *data, uint32_t param, uint32_t timeout); int luat_lcd_service_draw(luat_lcd_conf_t* conf, int16_t x1, int16_t y1, int16_t x2, int16_t y2, luat_color_t *data, uint8_t is_static_buf); +int luat_lcd_service_set_mem_type(uint8_t type); uint32_t luat_lcd_service_cache_len(void); void luat_lcd_IF_init(luat_lcd_conf_t* conf); int luat_lcd_IF_write_cmd_data(luat_lcd_conf_t* conf,const uint8_t cmd, const uint8_t *data, uint8_t data_len); diff --git a/components/lcd/luat_lib_lcd.c b/components/lcd/luat_lib_lcd.c index 547db9abd..4c62eb7d0 100644 --- a/components/lcd/luat_lib_lcd.c +++ b/components/lcd/luat_lib_lcd.c @@ -47,6 +47,7 @@ static const lcd_reg_t lcd_regs[] = { {"gc9306", &lcd_opts_gc9306x}, //gc9306是gc9306x的别名 {"ili9341", &lcd_opts_ili9341}, {"ili9486", &lcd_opts_ili9486}, + {"nv3037", &lcd_opts_nv3037}, {"", NULL} // 最后一个必须是空字符串 };