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
ST7796!
-
- 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
ST7796!
- Attachments
-
- Skærmbillede 2023-05-10 212223.png (1.07 KiB) Viewed 2300 times
-
- ST7796_Standard.fcfx
- (13.66 KiB) Downloaded 329 times
-
- Valued Contributor
- Posts: 1630
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 142 times
- Been thanked: 761 times
Re: ST7796!
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?
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
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
-
- Posts: 813
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 696 times
- Been thanked: 183 times
Re: ST7796!
Hi Martin and Bob!
Thank you for reply. It look like Martin´s examble work. But is it a bug?
I have added a counter.
Br jorgen
Thank you for reply. It look like Martin´s examble work. But is it a bug?

I have added a counter.
Br jorgen
- Attachments
-
- ST7796_Standard.fcfx
- (18.21 KiB) Downloaded 357 times
-
- Valued Contributor
- Posts: 1630
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 142 times
- Been thanked: 761 times
Re: ST7796!
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
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