I am looking for a bit of general direction on how to streamline my program.
I have a 11x7 matrix LED display that I want to display speed and other metrics from my ebike over canbus. I have got the canbus part sorted.
The LED matrix works by sending a co-ordinate for the LED to be lit, and can also be used with the Adafruit GFX lib.
ledmatrix.drawPixel(6, 0, brightness);
I have designed the numbers that I want to use, using excel and created a table with the corresponding co-ordinates.
My question is how can I elegantly use these without writing lots of lines of code to light up the individual LEDs that make up the number?
Would creating a library for this be a good approach? Make a function for each number? How is this handled usually?
Thanks in advance!