I tested my new GLCD with ILI9320 controller and SPI interface.
All the primitive functions of the grlib.h, including GrImageDraw(..); works fine, colors are drawn correctly,but when I try to upload the image to the Widget using a style xxx_STYLE_IMG, Widget absolutely not draw and I do not see anything on the display.
The Widget without images is working fine.
For example:
//This Widget is working normally
RectangularButton(g_sPushBtn, &g_sBackground, 0,0, &g_sHY28A_SPI_ILI9320, 100, 200,
50, 50, PB_STYLE_OUTLINE | PB_STYLE_TEXT , 0, 0, ClrRed,
ClrSilver, g_pFontCm20, "TEST", 0, 0, 0, 0, 0);
// the same edited Widget with code below, I see only red outline on the display, no text, no image…
RectangularButton(g_sPushBtn, &g_sBackground, 0, 0, &g_sHY28A_SPI_ILI9320, 100, 200,
50, 50, PB_STYLE_OUTLINE|PB_STYLE_TEXT|PB_STYLE_IMG , 0, 0, ClrRed,
ClrSilver, g_pFontCm20, "TEST", g_pucBlue50x50,
0, 0, 0, 0);
The same thing happens with the other Widget’s: Canvas, RadioButton… and similar
(g_pucBlue50x50 is included in My_images.h)
//The primityve function below, image is a well-displayed:
GrImageDraw(&g_sContext, g_pucBlue50x50, 120,160);
btw I‘m using STELLARIS ® LM4F120 Launchpad,Code Composer Studio v5.2.1, and
StellarisWare 9453
Where could be my problem?