2014-08-19 07:44 AM
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);}2014-08-19 07:53 AM
One should perhaps avoid exiting main(), nothing good will happen doing that.
2014-08-19 09:55 AM