Hi,
I'm trying to display a custom character to a custom created led panel i created from a string of ws2812 addressable leds.
I've got a set of characters:
byte ch48[24] = {0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0}; // 0
byte ch49[24] = {0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,0}; // 1
byte ch50[24] = {1,0,0,1,1,1,1,0,1,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1}; // 2
byte ch51[24] = {0,1,1,1,1,1,1,1,1,0,1,0,0,0,0,1,1,0,0,0,0,0,0,1}; // 3
byte ch52[24] = {1,1,1,1,1,1,0,0,0,0,1,0,0,0,0,0,0,0,1,1,1,1,1,1}; // 4
byte ch53[24] = {0,1,1,0,0,0,0,1,1,0,1,0,0,0,0,1,1,0,1,1,1,1,1,1}; // 5
byte ch54[24] = {0,1,1,0,0,0,0,1,1,0,1,0,0,0,0,1,1,1,1,1,1,1,1,0}; // 6
byte ch55[24] = {1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1}; // 7
byte ch56[24] = {0,1,1,1,1,1,1,1,1,0,1,0,0,0,0,1,1,1,1,1,1,1,1,0}; // 8
byte ch57[24] = {1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,1,0,0,1,1,1,1,1,0}; // 9
etc....
it's the ascii code with a ch prefix to create a valid variable name.
I'm able to create an array with the ascii codes from a string
But i'm stuck at getting the correct byte array with the corresponding character.
So how do I convert a char int e.g. "48" to "ch48" as a variable name.
Thanks in advance
Peter