cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f429zı emwin issue

ceylan
Associate II
Posted on August 19, 2014 at 16:44

  I include emwin and FreeRTOS library and write GUI_Init(); function. I want to see 'hello world' on LTCD but didnt. firstly, I saw white screen after display has turned black increasingly. I'm giving code below. I would be glad if you could help.

#include ''main.h''

#include ''GUI.h''

#include ''stm32f4xx.h''

#include ''stm32f429i_discovery_lcd.h''

void TaskMask();

int main() 

RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC,ENABLE);

TaskMask();

}

void TaskMask()

{

int xPos, yPos;

GUI_Init();

SDRAM_Init();

GUI_Clear();

        GUI_SetFont(&GUI_Font8x15B_ASCII);

GUI_SetBkColor(GUI_RED);

GUI_DispStringAt(''celalettin'',4,5);

xPos = LCD_GetXSize() / 2;

yPos = LCD_GetYSize() / 3;

GUI_SetFont(GUI_FONT_COMIC24B_ASCII);

GUI_DispStringHCenterAt(''Hello world!'', xPos, yPos);

}

2 REPLIES 2
Posted on August 19, 2014 at 16:53

One should perhaps avoid exiting main(), nothing good will happen doing that.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ceylan
Associate II
Posted on August 19, 2014 at 18:55