Dear,
I am using MPLAB X IDE for a homemade board with a PIC32MZ1024EFH100 and a 4 inch TFT with an NT35510 controller and a 16-bit parallel interface.
According to the documentation on porting for version 9 master, the function to pass data to the TFT shall have the signature:
void my_flush_cb(lv_disp_t *disp, const lv_area_t * area, lv_color_t *buf)
when I use this in the function registering it:
lv_disp_set_flush_cb(disp, my_flush_cb)
I get an error message that the argument is incompatible. Looking into the source files of lvgl, I found that the signature shall be:
void my_flush_cb(lv_disp_t *disp, const lv_area_t * area, uint8_t *buf)
that is uint8_t in place of lv_color_t for the last argument of the function.
Now, I am missing a definition of the content of the uint8_t buffer:
Are the pixels stored as three consecutive 8-bit colors (RGB)?
Or, are they stored as two consecutive 8-bit data together giving a 16-bits RGB 565?
Or ?
I have set RGB565 as the color format in the lv_conf.h file.
Regards,
Jorgen