hello friends, i need increase name variable.
when turn ON arduino, this question to valor of variable A.
..... { Serial.begin(9600);}.....
Serial.print(" value of variableA is? ");
g_pas:
if(Serial.available()>0){
variableA = Serial.read();} // write in variableA , value read of serial, for example = 4
else
{goto g_pas;} // if not receive char of serial, goto g_pas
Serial.print(variableA); // variableA = 4; , i sended 4 of searial port for example
for (int i=0; i<variableA; i++) // increment i of 0 to 4 ++
{
delay(500);
Serial.println("write value for value1,value2,value3,value4.. (depending on the value of the variableA)");
pas:
if(Serial.available()>0)
{
value=Serial.read();
else
{ delay(1000); goto pas;}
value=value(i);
Serial.println(value); Serial.println("i" ); Serial.println(i);
.....
for it examle ( i ) is increasing 4 times (i++ variableA), need a variable to increase for 4 names
in the step 1, value= value1
in the step 2, value= value2
in the step 3, value= value3
in the step 4, value= value4
it is neccesary of automaticallyment, for creates variables value depending on the value you expose in variableA