Hi to everyone,
This is my first post and I am glad to hear from you and to help me with my issue.
I use a Nucleo l152RE with 32 Mhz Crystal and a 320x240 pixels Display with the driver ILI9325. The display is connected with a 8 pins parallel interface.
I have a strange behavior, some functions like GUI_Clear() and GUI_FillCircle() and etc. are not working properly. I use the following draw function for test purpose.
Display All
The result is the following picture, as you can see the Text functions are working normally, but the functions GUI_FillCircle() and GUI_DrawLine() cannot draw with the right colors and I have a strange green color.
If i use the function GUI_Clear(), then all the Background has this green color. At the beginning I use a for loop to fill the display with white pixels.
Could some one help me, why i have this strange behavior ? If you want more code i can post it.
I am waiting to hear about your opinions.
[img]https://s13.postimg.org/un7v9nj53/IMAG0001.jpg[/img]
This is my first post and I am glad to hear from you and to help me with my issue.
I use a Nucleo l152RE with 32 Mhz Crystal and a 320x240 pixels Display with the driver ILI9325. The display is connected with a 8 pins parallel interface.
I have a strange behavior, some functions like GUI_Clear() and GUI_FillCircle() and etc. are not working properly. I use the following draw function for test purpose.
C Source Code
- GUI_SetFont(&GUI_Font8x16);
- GUI_SetBkColor(GUI_BLUE);
- GUI_SetColor(GUI_WHITE);
- for(int x=0; x<320; x++) {
- for (int y=0; y<240; y++) {
- GUI_DrawPixel(x,y);
- }
- }
- //GUI_Clear();
- GUI_SetPenSize(10);
- GUI_SetColor(GUI_BLACK);
- GUI_DrawLine(50, 0, 150, 150);
- GUI_FillCircle(100,100,10);
- GUI_SetBkColor(GUI_WHITE);
- GUI_SetColor(GUI_BLUE);
- GUI_SetTextMode(GUI_TM_NORMAL);
- GUI_DispStringHCenterAt("GUI_TM_NORMAL" , 100, 0);
- GUI_SetTextMode(GUI_TM_REV);
- GUI_DispStringHCenterAt("GUI_TM_REV" , 100, 26);
- GUI_SetTextMode(GUI_TM_TRANS);
- GUI_DispStringHCenterAt("GUI_TM_TRANS" , 100, 42);
- GUI_SetTextMode(GUI_TM_XOR);
- GUI_DispStringHCenterAt("GUI_TM_XOR" , 100, 58);
- GUI_SetTextMode(GUI_TM_TRANS | GUI_TM_REV);
- GUI_DispStringHCenterAt("GUI_TM_TRANS | GUI_TM_REV", 100, 74);
The result is the following picture, as you can see the Text functions are working normally, but the functions GUI_FillCircle() and GUI_DrawLine() cannot draw with the right colors and I have a strange green color.
If i use the function GUI_Clear(), then all the Background has this green color. At the beginning I use a for loop to fill the display with white pixels.
Could some one help me, why i have this strange behavior ? If you want more code i can post it.
I am waiting to hear about your opinions.
[img]https://s13.postimg.org/un7v9nj53/IMAG0001.jpg[/img]