Page 1 of 1

ClearDisplay() not working in simulation panel.

Posted: Mon May 01, 2023 7:50 am
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.

Re: ClearDisplay() not working in simulation panel.

Posted: Mon May 01, 2023 10:56 am
by medelec35
Hello.
Can you please post your project file that has an fcfx extension?

Re: ClearDisplay() not working in simulation panel.

Posted: Mon May 01, 2023 11:48 am
by burgessd
Here is the project file that demonstrates the problem.
Thanks.

Re: ClearDisplay() not working in simulation panel.

Posted: Mon May 01, 2023 12:03 pm
by medelec35
This is what the display shows when I run your project file:
Display Test.png
Display Test.png (17.77 KiB) Viewed 1427 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.

Re: ClearDisplay() not working in simulation panel.

Posted: Mon May 01, 2023 12:33 pm
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 1422 times

Re: ClearDisplay() not working in simulation panel.

Posted: Mon May 01, 2023 12:51 pm
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

Re: ClearDisplay() not working in simulation panel.

Posted: Mon May 01, 2023 1:03 pm
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.

Re: ClearDisplay() not working in simulation panel.

Posted: Tue May 02, 2023 1:30 pm
by burgessd
Updating to the latest version resolved the issue; I hadn't noticed that there was a new core update available.
Thanks!