ClearDisplay() not working in simulation panel.

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
burgessd
Posts: 4
http://meble-kuchenne.info.pl
Joined: Tue Aug 16, 2022 10:59 am
Been thanked: 1 time

Flowcode v10 ClearDisplay() not working in simulation panel.

Post by burgessd »

I have attempted to use the ClearDisplay() macro on the following displays and found that it does not clear the display in the simulation.
*ssd1306_i2c
*ili9488_SPI
*ILI9341_SPI

I am using Flowcode V10.

medelec35
Matrix Staff
Posts: 1475
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 522 times
Been thanked: 477 times

Re: ClearDisplay() not working in simulation panel.

Post by medelec35 »

Hello.
Can you please post your project file that has an fcfx extension?
Martin

burgessd
Posts: 4
Joined: Tue Aug 16, 2022 10:59 am
Been thanked: 1 time

Re: ClearDisplay() not working in simulation panel.

Post by burgessd »

Here is the project file that demonstrates the problem.
Thanks.
Attachments
Display test.fcfx
(12.98 KiB) Downloaded 45 times

medelec35
Matrix Staff
Posts: 1475
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 522 times
Been thanked: 477 times

Re: ClearDisplay() not working in simulation panel.

Post by medelec35 »

This is what the display shows when I run your project file:
Display Test.png
Display Test.png (17.77 KiB) Viewed 1130 times
That looks correct to me
Make sure the Flowcode component library is fully up to date by Help>Library Updates... Change the Files in-use to full database.
After updating reload your project.
What version of Flowcode v10 are you running?
Just click on the question mark on the right-hand side, near the top.
Just an observation, one of your print macros has transparent set to 1 and the other set to 0
When printing numbers or text in the same location, I would recommend setting transparent set to 0.
Martin

burgessd
Posts: 4
Joined: Tue Aug 16, 2022 10:59 am
Been thanked: 1 time

Re: ClearDisplay() not working in simulation panel.

Post by burgessd »

I am running version 10.0.1.18
I have run the full library update as instructed and the ClearDispaly() macro is still not working. I have also corrected the transparency issue.
This is the output I get when I run the code.
Display Test.png
Display Test.png (10.92 KiB) Viewed 1125 times

chipfryer27
Valued Contributor
Posts: 1203
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 289 times
Been thanked: 424 times

Re: ClearDisplay() not working in simulation panel.

Post by chipfryer27 »

Hi

I'm running v10.0.2.21 with full library updates and it runs fine for me too.

Go to File > Global Settings > and make sure Check for Core Updates is enabled. That should update you to the same version as I'm using.

Regards

medelec35
Matrix Staff
Posts: 1475
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 522 times
Been thanked: 477 times

Re: ClearDisplay() not working in simulation panel.

Post by medelec35 »

The latest v10 is version v10.0.2.21
To get that version, goto File>Global Settings
Make sure Check for core updates on launch is ticked.
If it was not, then after ticking it, close Flowcode and then run it again.
You should get a small window popping up on the bottom right stating core update is available.
Click on the text to update to the latest version.
If for some reason You can't see the message then as a last resort, you could uninstall Flowcode and download the latest version from here.
With your project running, select Help>Library updates.
Leave the drop-down as Files in-use
Select Show up-to-date files
For the gLCD make sure the Current and New Revisions are the same versions and all the colour shapes are green within the Current Revision section

Edit: I was uninstalling and reinstalling to make sure everything is correctly working.
While I was doing that chipfryer27 kindly helped as well.
Sorry for any duplication, but there could be additional information that might help.
Martin

burgessd
Posts: 4
Joined: Tue Aug 16, 2022 10:59 am
Been thanked: 1 time

Re: ClearDisplay() not working in simulation panel.

Post by burgessd »

Updating to the latest version resolved the issue; I hadn't noticed that there was a new core update available.
Thanks!

Post Reply