ST7796!

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jgu1
Posts: 813
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Flowcode v10 ST7796!

Post by jgu1 »

Hi MM!

Discover When I was making a counter, the number is not delete all when new number come. I mean if counter is shifting from 10 to 11 not all is deleted always after zero. I know I can use print " " for deleting but then the display "flicker" is there anything I can do so the 10 is complete delete?

Try simulate my program, same in real world.

I dont know if it is the same for ILI9488 an ILI9341.

Br Jorgen
Attachments
Skærmbillede 2023-05-10 212223.png
Skærmbillede 2023-05-10 212223.png (1.07 KiB) Viewed 2305 times
ST7796_Standard.fcfx
(13.66 KiB) Downloaded 329 times

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: ST7796!

Post by mnfisher »

One possible way to do it is to set the foreground colour the same as the background - re display the number then set colour to black again and display new number. This might be just as jarring visually as the 'space' technique?
ST7796_Standard.fcfx
(14.78 KiB) Downloaded 323 times
Ben's buffered output might help - or use the technique I used to do a fast display and draw to a buffer on the mcu..

Martin

RGV250
Posts: 340
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 34 times
Been thanked: 36 times

Re: ST7796!

Post by RGV250 »

Hi,
It may not help but I normally print a space or two after the actual number.

Bob

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: ST7796!

Post by jgu1 »

Hi Martin and Bob!

Thank you for reply. It look like Martin´s examble work. But is it a bug? :D

I have added a counter.


Br jorgen
Attachments
ST7796_Standard.fcfx
(18.21 KiB) Downloaded 357 times

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: ST7796!

Post by mnfisher »

Hi Jorgen,

How does it look on hardware? Is the 'clear' too noticeable? As Bob says - displaying a space (or spaces) after the number is a good way to handle this (but entails converting the number to a string first.
It's not a bug - it just occurs because the characters have different widths (a proportional font). So '1' is a lot narrower than '0'.

Martin

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: ST7796!

Post by jgu1 »

Hi Martin!

It’s the the same on display as in simulation. And yes I know there as different way to clear and I Will tast the best way. Thank`s to both of you :D

Br Jorgen

Post Reply