OK, I'm going nuts trying to figure out how to load a new set of text into a char register. I have my register initialized like this:
Later in the program, individual character are pulled from the array using getChar. This works just fine if I preload text into the array like this:
char textString = "SAMPLE TEXT";
But, what I need to do is randomly choose a phrase using random() and switch case and load it into textString, then do the various operations on it. I've tried to get it working using strncpy, strcpy, memcpy, etc... But I just can't get it to do anything. If the code actually compiles, it causes the Arduino to hang when it gets to that line. I need to have dozens of strings to choose from so I can't just declare all of them as their own arrays!
So what's the magic formula here? Thanks for your help!