From a62e1105c5a39196fd14cad37e81a78ccca691c9 Mon Sep 17 00:00:00 2001 From: Amir Gonnen Date: Thu, 14 Mar 2019 23:49:50 +0200 Subject: [PATCH] Added framebuffer module for unix port (littlevgl/lv_binding_micropython#16) --- lib/lv_bindings | 2 +- ports/unix/Makefile | 1 + ports/unix/mpconfigport.h | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/lv_bindings b/lib/lv_bindings index a56dd0318..c0a4c8f0b 160000 --- a/lib/lv_bindings +++ b/lib/lv_bindings @@ -1 +1 @@ -Subproject commit a56dd03184bee385e98b339fcae8c2c72353962c +Subproject commit c0a4c8f0b2faf505434f3d2394d6993062eeee69 diff --git a/ports/unix/Makefile b/ports/unix/Makefile index a6c256aad..61d7cbbb7 100644 --- a/ports/unix/Makefile +++ b/ports/unix/Makefile @@ -158,6 +158,7 @@ LIB_SRC_C = $(addprefix lib/,\ lv_bindings/driver/SDL/SDL_monitor.c \ lv_bindings/driver/SDL/SDL_mouse.c \ lv_bindings/driver/SDL/modSDL.c \ + lv_bindings/driver/linux/modfb.c \ $(LIB_SRC_C_EXTRA) \ timeutils/timeutils.c \ ) diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h index c68a2c290..d2342dc14 100644 --- a/ports/unix/mpconfigport.h +++ b/ports/unix/mpconfigport.h @@ -187,6 +187,7 @@ extern const struct _mp_obj_module_t mp_module_jni; extern const struct _mp_obj_module_t mp_module_lvgl; extern const struct _mp_obj_module_t mp_module_lvindev; extern const struct _mp_obj_module_t mp_module_SDL; +extern const struct _mp_obj_module_t mp_module_fb; #if MICROPY_PY_UOS_VFS #define MICROPY_PY_UOS_DEF { MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_uos_vfs) }, @@ -228,7 +229,8 @@ extern const struct _mp_obj_module_t mp_module_SDL; #define MICROPY_PY_LVGL_DEF \ { MP_OBJ_NEW_QSTR(MP_QSTR_lvgl), (mp_obj_t)&mp_module_lvgl },\ { MP_OBJ_NEW_QSTR(MP_QSTR_lvindev), (mp_obj_t)&mp_module_lvindev},\ - { MP_OBJ_NEW_QSTR(MP_QSTR_SDL), (mp_obj_t)&mp_module_SDL }, + { MP_OBJ_NEW_QSTR(MP_QSTR_SDL), (mp_obj_t)&mp_module_SDL },\ + { MP_OBJ_NEW_QSTR(MP_QSTR_fb), (mp_obj_t)&mp_module_fb }, #else #define LV_ROOTS #define MICROPY_PY_LVGL_DEF