Skip to content

Commit

Permalink
Update master branch to LVGL v9 version (#311)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
5 people authored Jan 23, 2024
1 parent cd9420c commit 5e80637
Show file tree
Hide file tree
Showing 26 changed files with 46,294 additions and 39,377 deletions.
68 changes: 34 additions & 34 deletions README.md

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions driver/esp32/espidf.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static void ili9xxx_send_data_dma(void *disp_drv, void *data, size_t size, int d
void ili9xxx_post_cb_isr(spi_transaction_t *trans)
{
if (trans->user)
lv_disp_flush_ready(trans->user);
lv_display_flush_ready(trans->user);
}


Expand All @@ -177,13 +177,13 @@ typedef struct {

void ili9xxx_flush(void *_disp_drv, const void *_area, void *_color_p)
{
lv_disp_t *disp_drv = _disp_drv;
lv_display_t *disp_drv = _disp_drv;
const lv_area_t *area = _area;
lv_color_t *color_p = _color_p;
int start_x = 0;
int start_y = 0;

void *driver_data = lv_disp_get_driver_data(disp_drv);
void *driver_data = lv_display_get_driver_data(disp_drv);

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

bool swap_rgb565_bytes = mp_obj_get_int(mp_obj_dict_get(driver_data, MP_OBJ_NEW_QSTR(MP_QSTR_swap_rgb565_bytes)));
if ( swap_rgb565_bytes == true ) {
lv_draw_sw_rgb565_swap(color_p, size);
}

if ( dt == DISPLAY_TYPE_ILI9488 ) {
color_size = 3;
/*Convert ARGB to RGB is required (cut off A-byte)*/
Expand Down
Loading

0 comments on commit 5e80637

Please sign in to comment.