Starting on a plotter type project and trying to assess if I can make it stand alone rather than tethered (to a PC).
The situation is I want to store the plotting instructions for a very simplified stick font. The req. data is along the lines of: 41; 18; 1,0 9,21 17,0; 4,7 14,7 - that's for the letter 'A'. I haven't figured out a data format yet - likely a simple array of ints.
What I am wondering is if once I have defined my char plot arrays, can I then define 'words' through pointers to those arrays? My goal/hope is that once the byte heavy font plot data is defined (and stored in PROGMEM), I will still have enough memory left to define lots of "words" (arrays of pointers to the plot data).
Does this make any sense?
Simple pseudo code (plot data is fake) but this compiles:
int A[] = {41,18,1,0, 9,21, 17,0, 4,7, 14,7};
int B[] = {23, 55, 44, 21, 77, 88, 41,18,1,0, 9,21, 17,0, 4,7, 14,7};
int C[] = {41,18,1,0, 9,21, 17,0, 4,7,33, 22, 14,7};
int T[] = {41,18,1,0, 9,21, 4,7, 14,7};
int* cat[3] = {C, A, T};
int* bat[3] = {B, A, T};
void setup() {
}
void loop() {
int** currentWord = cat;
}