GLCD_STM32F746NG1 on STM32F746 discovery

Moderator: Benj

Post Reply
headhuntergr
Posts: 50
Joined: Fri Feb 28, 2014 7:25 am
Has thanked: 34 times
Been thanked: 5 times
Contact:

GLCD_STM32F746NG1 on STM32F746 discovery

Post 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

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Post 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?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

headhuntergr
Posts: 50
Joined: Fri Feb 28, 2014 7:25 am
Has thanked: 34 times
Been thanked: 5 times
Contact:

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Post 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.
Attachments
Flowcode1.fcfx
(7.99 KiB) Downloaded 152 times

Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times
Contact:

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Post 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.
Attachments
Flowcode1_m.fcfx
(9.28 KiB) Downloaded 155 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Post by Benj »

Hello,

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

headhuntergr
Posts: 50
Joined: Fri Feb 28, 2014 7:25 am
Has thanked: 34 times
Been thanked: 5 times
Contact:

Re: GLCD_STM32F746NG1 on STM32F746 discovery

Post 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.

Post Reply