Hello!
I'm new here, thank you so much for developing such an amazing product.
I have few questions:
I'm on stm32f429i discorvery, everything is working fine, but when I try to rotate the screen using driver "#define DISPLAY_DRIVER_0 GUIDRV_LIN_OSX_32", the touch detection is messed up (rotated). I have tried to use following in my main:
/* Init the STemWin GUI Library */
U32 TouchOrientation;
TouchOrientation = (GUI_MIRROR_X * LCD_GetMirrorX()) |
(GUI_MIRROR_Y * LCD_GetMirrorY()) |
(GUI_SWAP_XY * LCD_GetSwapXY()) ;
GUI_TOUCH_SetOrientation(TouchOrientation);
GUI_Init();
GUI_Initialized = 1;
/* Activate the use of memory device feature */
WM_SetCreateFlags(WM_CF_MEMDEV);
but that doesn't seem to do the trick.
Second thing is, I export the transparent bitmaps in .c format using bitmapconverter. I load them and rotate in such a way:
GUI_MEMDEV_Select(src2);
GUI_Clear();
GUI_SetBkColor(GUI_TRANSPARENT);
GUI_DrawBitmap(&bmblat1_pod,0,0);
GUI_MEMDEV_RotateHQ(src2,hDst ,17,115,-90*1000,1*1000);
That produces good result. But I have read the documentation and there is such a function "GUI_MEMDEV_RotateHQT" optimised for bitmaps with transparent pixels (seems like a great deal for me), but once I change the function to "GUI_MEMDEV_RotateHQT" the program goes into infinite loop handler. Here is my GUIconf:
#define GUI_NUMBYTES ((1024) * 1500)
#define GUI_BUFFER_IN_EXT_RAM 1
#define GUI_BUFFER_ADDRESS 0xD0900000
#define OS_SUPPORT 1
Could you please give me some advice on this? Also can I draw .dta files containing transparent pixels instead of .c bitmaps? Will it be faster (the file size seem to be smaller)? Thank you again for delivering such a great product.
I'm new here, thank you so much for developing such an amazing product.
I have few questions:
I'm on stm32f429i discorvery, everything is working fine, but when I try to rotate the screen using driver "#define DISPLAY_DRIVER_0 GUIDRV_LIN_OSX_32", the touch detection is messed up (rotated). I have tried to use following in my main:
/* Init the STemWin GUI Library */
U32 TouchOrientation;
TouchOrientation = (GUI_MIRROR_X * LCD_GetMirrorX()) |
(GUI_MIRROR_Y * LCD_GetMirrorY()) |
(GUI_SWAP_XY * LCD_GetSwapXY()) ;
GUI_TOUCH_SetOrientation(TouchOrientation);
GUI_Init();
GUI_Initialized = 1;
/* Activate the use of memory device feature */
WM_SetCreateFlags(WM_CF_MEMDEV);
but that doesn't seem to do the trick.
Second thing is, I export the transparent bitmaps in .c format using bitmapconverter. I load them and rotate in such a way:
GUI_MEMDEV_Select(src2);
GUI_Clear();
GUI_SetBkColor(GUI_TRANSPARENT);
GUI_DrawBitmap(&bmblat1_pod,0,0);
GUI_MEMDEV_RotateHQ(src2,hDst ,17,115,-90*1000,1*1000);
That produces good result. But I have read the documentation and there is such a function "GUI_MEMDEV_RotateHQT" optimised for bitmaps with transparent pixels (seems like a great deal for me), but once I change the function to "GUI_MEMDEV_RotateHQT" the program goes into infinite loop handler. Here is my GUIconf:
#define GUI_NUMBYTES ((1024) * 1500)
#define GUI_BUFFER_IN_EXT_RAM 1
#define GUI_BUFFER_ADDRESS 0xD0900000
#define OS_SUPPORT 1
Could you please give me some advice on this? Also can I draw .dta files containing transparent pixels instead of .c bitmaps? Will it be faster (the file size seem to be smaller)? Thank you again for delivering such a great product.