Hello everyone!
I'm working on a little project using led matrixs using 16F88 µController and shift registers (74HC595) and i want to know if there is a way to optimise my code,independent of the length of my message and the matrix size (kind of an autoscale) , what i want to achieve is to write directly a sentence in a variable and then display it, not writing down every line like i did (exemple: A : 0xe3,0xd7,0xe3) , should i create some sort of functions where i write all the letters (like i did pour A,L,O) then send the sentence i want to display and it will select each letter's code and display it? Or is there any other solution?
I'm working on a little project using led matrixs using 16F88 µController and shift registers (74HC595) and i want to know if there is a way to optimise my code,independent of the length of my message and the matrix size (kind of an autoscale) , what i want to achieve is to write directly a sentence in a variable and then display it, not writing down every line like i did (exemple: A : 0xe3,0xd7,0xe3) , should i create some sort of functions where i write all the letters (like i did pour A,L,O) then send the sentence i want to display and it will select each letter's code and display it? Or is there any other solution?
Attachments
-
17.5 KB Views: 7
-
32 KB Views: 7
-
72.9 KB Views: 6