Skip to content

Commit 5e80637

Browse files
PGNetHunkisvegaboramirgonembeddedtXuNeo
authored
Update master branch to LVGL v9 version (#311)
* fix tests * update LV_GC... defintions * add guard around LV_USE_TINY_TTF in lv_conf.h * update lvgl * fix LV_USE_TINY_TTF redefintion * disable LV_USE_FS_STDIO * fix include path in MP ESP32 port * disable the unused fonts * Use lv_global_t as gc root * Expose mp_lv_roots directly with LV_GLOBAL_CUSTOM * Align lv_conf.h. Fix examples * Bump LVGL submodule Needed for lv_is_initialized fix * update lvgl and the examples * stm32 driver: replace LV_INDEV_STATE_PR/REL with LV_INDEV_STATE_PRESSED/RELEASED * update lvgl and fix png example * follow lvgl changes * esp32 driver: rename disp to display * update lvgl and lv_conf.h * Update LVGL and fix binding for multi-instance and parallel rendering architecture changes * Fix MICROPY_ config overrides * Enable File Explorer widget * Update LVGL * Update lv_conf.h from latest LVGL config template * Fix lv_conf.h macro closing issue * enable lv_observer * follow LVGL changes * follow LVGL changes * update lvgl * update LVGL * update LVGL * update lvgl * update lvgl * update lvgl * refactor(event): add _cb postfix to lv_obj_add_event() * update lvgl * update lvgl * fix lv_conf.h * fix lv_conf.h * update lv_conf.h * remove 'always_zero' from image header Signed-off-by: Xu Xingliang <[email protected]> * use MICROPY_LV_USE_LOG to disable logs * udpate lvgl * disable logging for now * enable MONTSERRAT_24 * fix(script): take forwarded declaration into consideration Signed-off-by: Xu Xingliang <[email protected]> * fix(script): fix CI break Should not sanitize the decl name that C struct uses. Only sanitize what python will use. Signed-off-by: Xu Xingliang <[email protected]> * Update LVGL, fix display drivers and examples (#298) * Update LVGL and fix pixel size detection * Update lv_conf.h * Fix ili9xxx and st7xx color format NATIVE_REVERSED * Fix display drivers * Enable font Dejavu 16 persian hebrew * Enable TinyTTF * Enable IME Pinyin * Enable File Explorer * Fix GC9A01 display driver, and update LVGL config file * Update LVGL * Update ili9xxx, st77xx drivers and examples, remove lv.COLOR_DEPTH (#312) * Update LVGL and display drivers * Update LVGL and display drivers * Update LVGL config: add ThorVG flags * Update LVGL * Fix examples to align to LVGL changes * Fix examples to align to LVGL changes - 2 * Update LVGL config (#319) * fix CI break by disabling LV_USE_LOG Signed-off-by: Xu Xingliang <[email protected]> * fix(ci): temporarily disable LOG to make LVGL's CI pass See https://github.com/lvgl/lvgl/actions/runs/7581068036/job/20647980102?pr=5393 * update lvgl * Update LVGL (#321) --------- Signed-off-by: Xu Xingliang <[email protected]> Co-authored-by: Gabor Kiss-Vamosi <[email protected]> Co-authored-by: Amir Gonnen <[email protected]> Co-authored-by: embeddedt <[email protected]> Co-authored-by: Xu Xingliang <[email protected]>
1 parent cd9420c commit 5e80637

26 files changed

+46294
-39377
lines changed

README.md

+34-34
Large diffs are not rendered by default.

driver/esp32/espidf.c

+8-3
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static void ili9xxx_send_data_dma(void *disp_drv, void *data, size_t size, int d
159159
void ili9xxx_post_cb_isr(spi_transaction_t *trans)
160160
{
161161
if (trans->user)
162-
lv_disp_flush_ready(trans->user);
162+
lv_display_flush_ready(trans->user);
163163
}
164164

165165

@@ -177,13 +177,13 @@ typedef struct {
177177

178178
void ili9xxx_flush(void *_disp_drv, const void *_area, void *_color_p)
179179
{
180-
lv_disp_t *disp_drv = _disp_drv;
180+
lv_display_t *disp_drv = _disp_drv;
181181
const lv_area_t *area = _area;
182182
lv_color_t *color_p = _color_p;
183183
int start_x = 0;
184184
int start_y = 0;
185185

186-
void *driver_data = lv_disp_get_driver_data(disp_drv);
186+
void *driver_data = lv_display_get_driver_data(disp_drv);
187187

188188
// We use disp_drv->driver_data to pass data from MP to C
189189
// The following lines extract dc and spi
@@ -232,6 +232,11 @@ void ili9xxx_flush(void *_disp_drv, const void *_area, void *_color_p)
232232
size_t size = (area->x2 - area->x1 + 1) * (area->y2 - area->y1 + 1);
233233
uint8_t color_size = 2;
234234

235+
bool swap_rgb565_bytes = mp_obj_get_int(mp_obj_dict_get(driver_data, MP_OBJ_NEW_QSTR(MP_QSTR_swap_rgb565_bytes)));
236+
if ( swap_rgb565_bytes == true ) {
237+
lv_draw_sw_rgb565_swap(color_p, size);
238+
}
239+
235240
if ( dt == DISPLAY_TYPE_ILI9488 ) {
236241
color_size = 3;
237242
/*Convert ARGB to RGB is required (cut off A-byte)*/

0 commit comments

Comments
 (0)