Want to use the .c display and touch drivers as they were
able to share ILI9341 + xpt2046 + sdcard on same spi.
lv_bindings\driver\esp32\modILI9341.c
lv_bindings\driver\esp32\modxpt2046.c
using…
esp-idf v4.1
lv_micropython dev
tried so far…
uncomment…
extern const struct _mp_obj_module_t mp_module_ILI9341;
extern const struct _mp_obj_module_t mp_module_xpt2046;
and
{ MP_OBJ_NEW_QSTR(MP_QSTR_ILI9341), (mp_obj_t)&mp_module_ILI9341 },
{ MP_OBJ_NEW_QSTR(MP_QSTR_xpt2046), (mp_obj_t)&mp_module_xpt2046 },
in mpconfigport.h
added…
line 166, ${LV_BINDINGS_DIR}/driver/esp32/modILI9341.c
line 167, ${LV_BINDINGS_DIR}/driver/esp32/modxpt2046.c
in lv_bindings\mkrules.cmake
build errors…
-MF esp-idf/main/CMakeFiles/idf_main.dir/mnt/c/AccuTherm/lv_micropython/lib/lv_bindings/driver/esp32/modxpt2046.c.obj.d -o esp-idf/main/CMakeFiles/idf_main.dir/mnt/c/AccuTherm/lv_micropython/lib/lv_bindings/driver/esp32/modxpt2046.c.obj -c /mnt/c/AccuTherm/lv_micropython/lib/lv_bindings/driver/esp32/modxpt2046.c
/mnt/c/AccuTherm/lv_micropython/lib/lv_bindings/driver/esp32/modxpt2046.c:211:13: error: conflicting types for ‘xpt2046_read’
static bool xpt2046_read(lv_indev_data_t * data)
^~~~~~~~~~~~
/mnt/c/AccuTherm/lv_micropython/lib/lv_bindings/driver/esp32/modxpt2046.c:119:13: note: previous declaration of ‘xpt2046_read’ was here
STATIC bool xpt2046_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data);
^~~~~~~~~~~~
/mnt/c/AccuTherm/lv_micropython/lib/lv_bindings/driver/esp32/modxpt2046.c:119:13: warning: ‘xpt2046_read’ used but never defined
/mnt/c/AccuTherm/lv_micropython/lib/lv_bindings/driver/esp32/modxpt2046.c:211:13: warning: ‘xpt2046_read’ defined but not used [-Wunused-function]
static bool xpt2046_read(lv_indev_data_t * data)
^~~~~~~~~~~~
[1255/1371] Building C object esp-idf/mai…keFiles/idf_main.dir///lv_png.c.obj
lv_png.c:1577:17: warning: 'mp_arr_from_char___5’ defined but not used [-Wunused-function]
STATIC mp_obj_t mp_arr_from_char___5__(char *arr)
^~~~~~~~~~~~~~~~~~~~~~
lv_png.c:598:27: warning: ‘mp_obj_get_ull’ defined but not used [-Wunused-function]
STATIC unsigned long long mp_obj_get_ull(mp_obj_t obj)
^~~~~~~~~~~~~~
[1257/1371] Building C object esp-idf/mai…iles/idf_main.dir///lv_espidf.c.obj
lv_espidf.c:15058:18: warning: ‘esp_http_client_config_t_event_handler_callback’ defined but not used [-Wunused-function]
STATIC esp_err_t esp_http_client_config_t_event_handler_callback(esp_http_client_event_t * arg0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lv_espidf.c:13971:17: warning: 'mp_arr_from_mdns_txt_item_t___’ defined but not used [-Wunused-function]
STATIC mp_obj_t mp_arr_from_mdns_txt_item_t_____(mdns_txt_item_t *arr)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lv_espidf.c:13701:17: warning: ‘mp_arr_from_esp_ip6_addr_t_____’ defined but not used
[-Wunused-function]
STATIC mp_obj_t mp_arr_from_esp_ip6_addr_t_____(esp_ip6_addr_t *arr)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lv_espidf.c:13218:17: warning: ‘mp_arr_from_uint8_t_____’ defined but not used [-Wunused-function]
STATIC mp_obj_t mp_arr_from_uint8_t_____(uint8_t *arr)
^~~~~~~~~~~~~~~~~~~~~~~~
lv_espidf.c:8506:17: warning: ‘mp_arr_from_sh2lib_nv_____’ defined but not used [-Wunused-function]
STATIC mp_obj_t mp_arr_from_sh2lib_nv_____(const struct sh2lib_nv *arr)
^~~~~~~~~~~~~~~~~~~~~~~~~~
lv_espidf.c:6333:17: warning: ‘mp_arr_from_u8_t___4__’ defined but not used [-Wunused-function]
STATIC mp_obj_t mp_arr_from_u8_t___4__(u8_t *arr)
^~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make: *** [Makefile:24: all] Error 2
make: Leaving directory ‘/mnt/c/AccuTherm/lv_micropython/ports/esp32’
rggc5457@RG-x360:/mnt/c/AccuTherm$