We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
it may be simple question,i use emWIN5 with arm cortex-m4, keil. I would like to change coordinate. it means I usually set "GUI_DispStringAt("sample",30,40,);". however, i don't know how to change vertical to horizon. please let me know how to change. if you need further information, also let me know. thank you.
I guess he wonders how to change coordinate system - how to change between landscape and portrait.
Yes, but it'd just be a guess - so much easier if he'd state clearly...
It takes extra time to write exact and precise questions. So obviously not a good route since most people with questions are in a hurry to get an exact and precise answer.
I'm sorry for insufficient information. i want exchange x-axis and y-axis. It means that I want change display way(vertical to horizon). but emwin5's functions are protected for licence i think so i can't access function prototype. i also looked for exchange function in datasheet about emwin5 but i could not find.
summary 1.I use Segger Emwin5 which is the GUI system and it is controlled by Coretex-M4(STM32f407IG) 2.I used some functions that display on LCD. the functions are GUI_DispStringAt("Voltage",50,20); 3.please let me know how to change x-axis to y-axis( displayed vertical to horizon)
here is some exapmle i'm programing
void MainTask(void) { int xPos, yPos, xSize, ySize;
SystemInit(); SystemCoreClockUpdate();
GUI_Init();
// GUI_SetBkColor(GUI_RED); // GUI_Clear(); // GUI_Delay(1000); // GUI_SetBkColor(GUI_GREEN); // GUI_Clear(); // GUI_Delay(1000); // GUI_SetBkColor(GUI_BLUE); // GUI_Clear(); // GUI_Delay(1000);
GUI_SetBkColor(GUI_BLACK); GUI_Clear();
xSize = LCD_GetXSize(); ySize = LCD_GetYSize();
// GUI_SetFont(&GUI_FontComic24B_1); // GUI_SetColor(GUI_CYAN); // GUI_DispStringHCenterAt("S.M.U.", xSize/2 , 20); // GUI_SetColor(GUI_DARKBLUE); // GUI_DispStringHCenterAt("Hanyang Univ.", xSize / 2, ySize - 40);
xPos = xSize / 2; yPos = ySize / 3; GUI_SetColor(GUI_WHITE); GUI_SetTextMode(GUI_TEXTMODE_NORMAL); GUI_SetFont(GUI_FONT_20F_ASCII); GUI_DispStringHCenterAt("Hello world!", xPos, yPos); GUI_SetFont(&GUI_Font8x16);
xSize = GUI_GetStringDistX("000000000"); xPos -= xSize / 2; yPos += 24 + 10;
GUI_DispStringAt("Voltage",xPos,20); GUI_SetFont(&GUI_FontD36x48);
while (1) {}
xPos1=xPos; yPos1=yPos; }
summary 1.I use Segger Emwin5 which is the GUI system and it is controlled by Coretex-M4(STM32f407IG) 2.I used some functions that display on LCD. the functions are GUI_DispStringAt("Voltage",50,20); or GUI_DispDecAt(yaya,10,100,2); GUI_DispStringAt(".",80,100); etc 3.please let me know how to change x-axis to y-axis( displayed vertical to horizon)
i want to change to
(0,0) (0,0) ---------------> X ---------------> Y | | | | | | | | | | | | | | Y X