Updated: October 28, 2024 |
I won't go into great detail on the render_7segment() function, except to describe in broad terms how it works.
Here's the prototype for render_7segment():
void render_7segment (char *digits, unsigned char *r, int xsize, int ysize);
The parameters are:
As an exercise for the reader, you can extend the character set accepted by the render_7segment() function. You'll want to pay particular attention to the seg7 array, because it contains the individual segment encodings for each character.