0

Help the arrays are not working.

Arrays are working erroneously. Here is an example:

int iMassCull [4]={153,273,393,443};

void setup() {

Serial.begin(9600);

Serial.println ("data : "+String(iMassCull [0]));
Serial.println ("data : "+String(iMassCull [1]));
Serial.println ("data : "+String(iMassCull [2]));
Serial.println ("data : "+String(iMassCull [3]));

}


void loop()
{

}

What we get at the serial port outlet:
data : 155 data : 277 data : 399 data : 444
 

0 comments

Please sign in to leave a comment.