I'm trying to manipulate arrays, but I'm a little confused with I need to do. I want to do something like:
char myArray[10];
myArray[0] = 0xA9;
myArray[1] = 'D';
myArray[2] = 'S';
myArray[3] = "qwert";
myArray[9] = 'C';
myArray[10] = '\0';
String fullArray = String(myArray);
Of course, this doesn't work, but I want something like this and if possible manipulate one of the arrays. Is that possible?
I tried this, but I can't output the whole string at once.
char* myStrings[] =
{"This is string 1",
"This is string 2",
"This is string 3",
"This is string 4",
"This is string 5",
"This is string 6"};
void setup(){
Serial.begin(9600);
}
void loop(){
for (int i = 0; i < 6; i++){
Serial.println(myStrings[i]);
delay(500);
}
}