cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 embedded GUI library - icon problem

lukabit
Associate
Posted on September 18, 2014 at 20:04

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-gui
1 REPLY 1
Posted on September 19, 2014 at 09:18

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?