Using a sprite as character map for a smooth font and display them using colors #1123
Unanswered
delhoume
asked this question in
New processor/display support or capability request
Replies: 2 comments 5 replies
-
I tried the sketch but it would not compile under the Arduino environment. |
Beta Was this translation helpful? Give feedback.
4 replies
-
I had a look, most of the screen update time is due to the poor random access time of SPIFFS which caches blocks in RAM and ends up flushing and reloading. Convert the font to an array, see examples here. On an ST7796 320x240 display clocked at 80MHz SPI rate this boosted performance from 8fps to 30fps. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have an application (a matrix rain effect) where I display a limited number of chars (about 100), but with different colors.
My application flickers somehow (I created a sprite for each vertical line to reduce this) but I have to draw each char in its final color to the vertical sprite, then push the sprite to the screen.
I would like to create a sprite that contains all chars (in grey levels), and display them to the screen "tinted".
Creating the sprite and filling it with chars from the smooth font is easy but I did not find a way to display, for a given char, the correct sprite sub-section tinted to the final screen.
There are many colors so creating a sprite with all combinations of chars and colors is not possible.
That looks like some kind of cache for smooth fonts chars, instead of parsing the vlw each time for a given char, its contents would be in a sprite, and displayed to the final destination using a tint color.
The background color is uniform (black).
I am clear enough ?
Current code for the application is at https://github.com/delhoume/MatrixRain
Beta Was this translation helpful? Give feedback.
All reactions