Flowcode 11 Graphical Display Manager Demonstration

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.
Post Reply
BenR
Matrix Staff
Posts: 2159
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 587 times
Been thanked: 771 times

Flowcode v11 Flowcode 11 Graphical Display Manager Demonstration

Post by BenR »

Hello All,

I've put together a bit of a demonstration of the new graphical display features available in v11 here.

https://youtu.be/8pBGSSQuoaI

Please feel free to comment and ask any questions below.

jgu1
Posts: 914
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 807 times
Been thanked: 202 times

Flowcode v11 Re: Flowcode 11 Serial In Circuit Debug (ICD)

Post by jgu1 »

Hi Ben!

Thanks again for your example and the thorough walkthrough — it’s really useful. I’ve studied it over and over to learn from it, :D and I can see all the advantages of the Display Manager: it makes it fast to create different buttons, text fields, adjust layout, and use various colors.

I’ve asked about this before but didn’t quite create this, so I hope you can help — maybe with an example.

I now understand the different functions you demonstrated. What I can’t figure out is this:

If I want to create a “main menu” with, for example, three buttons — let’s say Volt, Amp, and Watt — I want to be able to press (for example) the Volt button and switch to a “Volt scene.” There, it should continuously display the current voltage value until I press a “Home” button.

After that, I should be able to press the Amp button, and the screen should switch to an “Ammeter scene,” and continuously display the current values until I press a “Home” button there as well.

I can make this work, but the values are only shown once — they are not updated continuously unless I exit and re-enter the scene.

I hope you understand what I mean.

Br Jorgeb

BenR
Matrix Staff
Posts: 2159
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 587 times
Been thanked: 771 times

Re: Flowcode 11 Graphical Display Manager Demonstration

Post by BenR »

Hello Jorgen,

The button handler macro changes scene as required and then in the main loop you need to check which scene is active and then process the code specific for that scene. e.g. on the voltage scene you would sample the voltage and display. On the current scene you would sample the current and display.

Do you want to post what you have so far and I'll have a quick look for you. You basically need to do the update as part of the main loop.

Or I can create another quick demo video showing how to do this if that would be useful.

jgu1
Posts: 914
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 807 times
Been thanked: 202 times

Flowcode v11 Re: Flowcode 11 Graphical Display Manager Demonstration

Post by jgu1 »

Hi Ben!

If you please Will: Or I can create another quick demo video showing how to do this if that would be useful.

Absolute, please, I am grateful, so please :D

Jorgen

Post Reply