Associate III
May 30, 2021
Question
STM32F103VET6,FSMC, STemWin_v544, NT35510 manual support
- May 30, 2021
- 5 replies
- 2074 views
STemWin v5.44 do not support NT35510 based TFTs. But it possible to rewrite LCDConf_FlexColor.c and TFT working good. But problem found with text output by GUI_ functions. This pcs of code from STemWin manual working wrong and produce the result like in the pic. On the pic left is right output, on the right - from my TFT. What is wrong here?
// UM03001_v6.18.pdf page215 text output snippet
GUI_SetFont(&GUI_Font8x16);
GUI_SetBkColor(GUI_BLUE);
GUI_Clear();
GUI_SetPenSize(10);
GUI_SetColor(GUI_RED);
GUI_DrawLine(80, 10, 240, 90);
GUI_DrawLine(80, 90, 240, 10);
GUI_SetBkColor(GUI_BLACK);
GUI_SetColor(GUI_WHITE);
GUI_SetTextMode(GUI_TM_NORMAL);
GUI_DispStringHCenterAt("GUI_TM_NORMAL", 160, 20);
GUI_SetTextMode(GUI_TM_REV);
GUI_DispStringHCenterAt("GUI_TM_REV", 160, 36);
GUI_SetTextMode(GUI_TM_TRANS);
GUI_DispStringHCenterAt("GUI_TM_TRANS", 160, 52);
GUI_SetTextMode(GUI_TM_XOR);
GUI_DispStringHCenterAt("GUI_TM_XOR", 160, 68);
GUI_SetTextMode(GUI_TM_TRANS | GUI_TM_REV);
GUI_DispStringHCenterAt("GUI_TM_TRANS | GUI_TM_REV", 160, 84);
