2014-09-18 11:04 AM
Hi everyone!
I try to use STM32 embedded GUI library ( http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257934 ). I use STM32F103Z with 64kB SRAM, and LCD with SSD1289 controller. I have one problem. All functions work, almost. I can't use icons like buttons. I started demo applications but it is not working there too. Can anybody tell me how to fix this? I think the problem is there: if ( CompareCoordinates( tmpCoord.MaxX, tmpCoord.MaxX - tmpSize.Length + 1, tmpCoord.MaxY, tmpCoord.MaxY - tmpSize.Height ) ) { ... } because function never goes into ''if'' block. #stsw-stm32098 #stm32-embedded-gui2014-09-19 12:18 AM
I think the problem is there:
if ( CompareCoordinates( tmpCoord.MaxX, tmpCoord.MaxX - tmpSize.Length + 1, tmpCoord.MaxY, tmpCoord.MaxY - tmpSize.Height ) )
{
...
}
because function never goes into ''if'' block. So the function must be never returning true - mustn't it?Have you tried evaluating the parameters you're passing it? Is the function actually returning the correct result based on those values?Can you step into the function?
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.