Page 1 of 1

GLCD_STM32F746NG1 on STM32F746 discovery

Posted: Thu Apr 16, 2020 8:14 pm
by headhuntergr
Hello!
Any ideas why i cannot change the foreground and background within the program?
It only responds to the initial properties under the component properties. If i call a macro and try to change it nothing happens.

Best regards

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Posted: Thu Apr 16, 2020 11:40 pm
by kersing
Can you attach your flowchart so we can check what you are doing? Calling the macro will not change what is already on the display, just newly items you display. Is that your expectation?

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Posted: Fri Apr 17, 2020 12:01 am
by headhuntergr
It's basically nothing, just wanted to change the color.

Is it possible to actually customize a component?

Thank you for your reply.

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Posted: Fri Apr 17, 2020 8:55 am
by Alkaline
Hello
In fact, you always need two steps to change the pixel color.

You must first set the color and then draw the new color on the display. And to draw the new color on the display, you have to draw it using lines and points.

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Posted: Fri Apr 17, 2020 9:02 am
by Benj
Hello,

Yes the set colour functions effectively set the pen colours and will not change content already drawn on the display.

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Posted: Fri Apr 17, 2020 11:08 am
by headhuntergr
Thank you all for your reply i think i got it.
I have to now understand how to edit the SHT31 that i need and save it s a new component. I am trying to follow instructions from here but it seems they are not clear or somehow i miss stuff.