void setup() {
const char* source = "Hello World";
// const char* source = "The quick brown fox jumps over the lazy dog";
// 0 1 2 3 4
// 1234567890123456789012345678901234567989012
const char* source2 = "Right on";
const char* source3 = "Watch this space";
String myString = String(source3);
int rows = 3;
int columns = 2;
int characters= 30;
int counter = 65;
char destination[rows][columns][characters];
Serial.begin(115200);
// Serial.begin(9600);
while (!Serial) {
}
delay(5000);
// Serial.println(source);
for (int x = 0; x < rows; x++) {
for (int y = 0; y < columns; y++){
strcpy(destination[x][y], "\0");
Serial.print(x);
Serial.print(" ");
Serial.print(y);
Serial.print(" ");
Serial.println(destination[x][y]);
counter ++;
}
}
strcpy(destination[0][0], source);
Serial.println(destination[0][0]);
strcpy(destination[1][1], source2);
Serial.println(destination[1][1]);
Serial.println(destination[1][0]);
Serial.println(myString);
// strcat(destination[4], myString);
// Serial.println(destination[4]);
}
void loop() {}