Hi all,
did not find any helpful info for my issue so far…
For my model railway station I would like to create a Track-Display using a NANO and a small OLED Display that shows the next Trainnumber, Target Station, Track Number and time until departure.
Basically that works, but I would like to do this with an array as follows:
const String Arr_Salzburg[6] {“SALZBURG;RJ65;;4;9;”, “SALZBURG;RJ65;;4;7;”, “SALZBURG;RJ65;;4;4;”, “SALZBURG;RJ65;;4;2;”, “SALZBURG;RJ65;;4;1;”, “SALZBURG;RJ65;;4;0;”};
So in a for-loop I would like to iterate through the array and update time until departure - depending on the amount of entries in the array.
to be more flexible I would like to have another array that contains all arrays with track info e.g.
const String Arraylist[10] = {“Arr_Salzburg”};
My issue is - in the first for loop thru Arraylist I get Arr_Salzburg back but I am not able to use value Arr_Salzburg for another for loop to get its values…
I was not able to use Arraylist in the second for- loop.
=> how can I get the content of Array Arraylist ?
```
* for (byte h = 0; h < (sizeof(Arraylist)) / sizeof(Arraylist[0]); h++) {
Serial.println(Arraylist[h]); //debug
for (byte i = 0; i < (sizeof(Arraylist[h]) / sizeof(Arraylist[h][0])); i++) {
Serial.println(Arraylist[h][i]); //debug
str1stline = split(Arraylist[h][i], ‘;’, 0);
_```*
many thanks for any help,
Wolfgang_