|
|
@@ -171,16 +171,25 @@ void luat_lcd_execute_cmds(luat_lcd_conf_t* conf);
|
|
|
int lcd_write_cmd_data(luat_lcd_conf_t* conf,const uint8_t cmd, const uint8_t *data, uint8_t data_len);
|
|
|
int lcd_read_cmd_data(luat_lcd_conf_t* conf,const uint8_t cmd, const uint8_t *data, uint8_t data_len, uint8_t dummy_bit);
|
|
|
|
|
|
-// xxx_default 一般为通用spi设备使用
|
|
|
+// xxx_default 为luatos内部默认实现,bsp可不使用default实现
|
|
|
int luat_lcd_init_default(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_setup_buff_default(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_flush_default(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_draw_default(luat_lcd_conf_t* conf, int16_t x1, int16_t y1, int16_t x2, int16_t y2, luat_color_t* color);
|
|
|
+int lcd_draw_jpeg_default(luat_lcd_conf_t* conf, const char* path, int16_t x, int16_t y);
|
|
|
+int lcd_jpeg_decode_default(luat_lcd_conf_t* conf, const char* path, luat_lcd_buff_info_t* buff_info);
|
|
|
|
|
|
-luat_lcd_conf_t* luat_lcd_get_default(void);
|
|
|
-const char* luat_lcd_name(luat_lcd_conf_t* conf);
|
|
|
+// 以下为luatos内部实现通用接口
|
|
|
+// 以下为 weak函数 可bsp单独适配硬件加速或其他接口适配等功能,默认指向上方xxx_default函数
|
|
|
int luat_lcd_init(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_setup_buff(luat_lcd_conf_t* conf);
|
|
|
+int luat_lcd_flush(luat_lcd_conf_t* conf);
|
|
|
+int luat_lcd_draw(luat_lcd_conf_t* conf, int16_t x1, int16_t y1, int16_t x2, int16_t y2, luat_color_t* color);
|
|
|
+int lcd_draw_jpeg(luat_lcd_conf_t* conf, const char* path, int16_t x, int16_t y);
|
|
|
+int lcd_jpeg_decode(luat_lcd_conf_t* conf, const char* path, luat_lcd_buff_info_t* buff_info);
|
|
|
+// 以下为非 weak 函数
|
|
|
+luat_lcd_conf_t* luat_lcd_get_default(void);
|
|
|
+const char* luat_lcd_name(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_close(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_display_on(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_display_off(luat_lcd_conf_t* conf);
|
|
|
@@ -190,8 +199,6 @@ int luat_lcd_inv_off(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_inv_on(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_set_address(luat_lcd_conf_t* conf, int16_t x1, int16_t y1, int16_t x2, int16_t y2);
|
|
|
int luat_lcd_set_color(luat_color_t back, luat_color_t fore);
|
|
|
-int luat_lcd_draw(luat_lcd_conf_t* conf, int16_t x1, int16_t y1, int16_t x2, int16_t y2, luat_color_t* color);
|
|
|
-int luat_lcd_flush(luat_lcd_conf_t* conf);
|
|
|
int luat_lcd_draw_no_block(luat_lcd_conf_t* conf, int16_t x1, int16_t y1, int16_t x2, int16_t y2, luat_color_t* color, uint8_t last_flush);
|
|
|
int luat_lcd_clear(luat_lcd_conf_t* conf, luat_color_t color);
|
|
|
int luat_lcd_draw_fill(luat_lcd_conf_t* conf, int16_t x1,int16_t y1,int16_t x2,int16_t y2,luat_color_t color);
|
|
|
@@ -203,10 +210,6 @@ int luat_lcd_draw_rectangle(luat_lcd_conf_t* conf, int16_t x1, int16_t y1, int16
|
|
|
int luat_lcd_draw_circle(luat_lcd_conf_t* conf, int16_t x0, int16_t y0, uint8_t r, luat_color_t color);
|
|
|
int luat_lcd_set_direction(luat_lcd_conf_t* conf, uint8_t direction);
|
|
|
|
|
|
-// weak函数 可bsp单独适配硬件加速实现
|
|
|
-int lcd_draw_jpeg(luat_lcd_conf_t* conf, const char* path, int16_t x, int16_t y);
|
|
|
-int lcd_jpeg_decode(luat_lcd_conf_t* conf, const char* path, luat_lcd_buff_info_t* buff_info);
|
|
|
-
|
|
|
/*
|
|
|
* csdk适配用
|
|
|
*/
|