How can I set "data" as an array populated by the FOR loop? I need to be able to parse it similar to this:
if (data[0] == '2' )
{
int tmp = 4;
if ( data[1] == '5' && receivedChars[2] == '5' ) {
digitalWrite(tmp, HIGH);
}
if ( data[1] == '5' && receivedChars[2] == '4' ) {
digitalWrite(tmp, LOW);
}
} // PIN