2024-09-03 04:46 AM
Hi All,
I am working on NUCLEO-L476RG with RM69600 Driver SPI Interface.
Able to display the image in 8bitRGB bitmap format but not able Display anything Using LVGL Library.
thanks in advance,
Raj
2024-09-04 02:24 AM
Hello @Prakash_Raj1994
Can you please, check Initialization and ensure that both SPI and LVGL initialization functions are called correctly.
Also, check Data Transmission (that the data is being correctly transmitted over SPI to the display).
One other thing, verify the Implementation of the display driver functions required by LVGL. This includes the flush_cb
function that sends the buffer content to the display.
Here's an example of how the code structure should be:
void your_display_flush_cb(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_t *color_p)
{
// Set the address window
set_address_window(area->x1, area->y1, area->x2, area->y2);
// Send the color data
for (int y = area->y1; y <= area->y2; y++)
{
for (int x = area->x1; x <= area->x2; x++)
{
// Send color data via SPI
send_color_data(color_p->full);
color_p++;
}
}
// Inform LVGL that flushing is done
lv_disp_flush_ready(disp_drv);
}