I am trying to get a simple application to run using an ESP32 and ILI9488 TFT to display an image that was converted utilizing the Image Conversion Tool
I have added the c file to my project, when I try to compile the code I get the following error: expected primary-expression before ‘.’ token at the line .header.cf = LV_IMG_CF_INDEXED_8BIT,
Usually this error occurs when your compiler is treating the file as C++, which doesn’t support the dot notation for initializing structs.
You can try reordering the .data_size and .header.cf lines, see if there’s a way to make your compiler accept this syntax, or try this workaround which removes the dot notation: