I need help with this understanding about arrays and loops.
All I won is to loop throgh analogpins a0-a5 into a array
And the same with D2-D8 into array
Now I got 2 arrays
When I print it sholud be like tihs ex:
a0 100,a1 100, a2 100.... and so D2 1, D3 1, D4 1....
One long string.
How to do that and how to get it out again.
I have been trying with something like this.
AnalogPins[thisPin] = (String)"A" + thisPin + "," + sensorReading;
Am I on the right way?