2014-05-14 01:03 AM
hi,I'm learning how to use STemwin,so my 1st routine''hello world'' doesn't work well.
GUI_DispStringAt(''Hello World!'', 0, 0); shows all words in reverse
at top-right
,but all letters are correct. I setConfig.Orientation = GUI_MIRROR_X; (
LCD_X_Config in LCDConf_FlexColor_template.c
), if I setConfig.Orientation = 0; all words show still at top-right and each letter is also in reverse.
I am really confused what happened, it seems the coordination (0,0) is set at top-right. The display controllor is ILI9481,MCU is stm32F407, can somebody help me out? Thanks in advance.
#stemwin2014-05-15 04:33 AM
Well, I'd try not mirrorring the x orientation for a start.
Don't use GUI_MIRROR_X.Cheers
2014-05-15 06:30 PM
Thanks for reply, as I mentioned : if
I set
Config.Orientation = 0; all words show still at top-right and all letters are also in reverse.
It's really odd, and that's why I got confused :(2014-05-16 05:26 AM
Oh, my bad!
I'll rethink it then, now that I did actually understand the problem :) Edit, I assume you drive it, using SPI. Have a look at the datasheet's page number 80:http://www.ncsys.co.jp/webshop/GTV350MPZI04%28ILI9481%pdf
________________ Attachments : www.ncsys.co.jpwebshopGTV350MPZI04_ILI9481_.bmp : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I1Mz&d=%2Fa%2F0X0000000bm2%2FgvA_juGjwf6cWcQedpVWvzpWH2ljXR9k7gNxS1oDf0c&asPdf=false2016-12-26 09:38 AM
hi. i work on emwin hello world.
my lcd controller is ILI9341
my code is
GUI_Init();
/* Activate the use of memory device feature */ WM_SetCreateFlags(WM_CF_MEMDEV); MainTask();but not anything is display on lcd.
please help me...
what is wrong ? how can i link emwin to my lcd functions ?
thank you...
2016-12-26 10:52 AM
Dear
abbasi.davoud
,Are you enabled clock for CRC module ?
The CRC must be enabled before calling GUI_Init, if not STemWin will be not function
this is mentioned in the page 6 of AN4323 to call GUI_Init function prior to use any STemWin function or GUI routines: 'The CRC module (in RCC peripheral clock enable register) should be enabled before using the library.'
Are you following the
emwinuser manual aboutWM_SetCreateFlags (WM_CF_MEMDEV) ? which mentioned :
'The flag WM_CF_MEMDEV is frequently used to enable Memory Devices on all windows. Setting create flags is permitted before GUI_Init() is called. This causes the background window to be also affected by the create flags.
'
Best Regards
Imen
2016-12-27 08:33 AM
hi thank you ...i call __HAL_RCC_CRC_CLK_ENABLE(); in first of codeand i call WM_SetCreateFlags(WM_CF_MEMDEV); my code is :
HAL_Init(); SystemClock_Config(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); __HAL_RCC_GPIOE_CLK_ENABLE(); __HAL_RCC_CRC_CLK_ENABLE(); WM_SetCreateFlags(WM_CF_MEMDEV); GUI_Init(); MainTask();
but nothing display on LCD ....what thing should i change for test ?
please help me ....