ok guys
I managed to change the sketch and now I have a led lit in practice and in the race until the traffic light turns off, and it's perfect. like follow:
case 3:
// Heat starting (2)
//***************************************************
// Start Sequence
if (inBuffer[3] == 2 && inBuffer[2] == 4) // Start Of Sequnce - Lights off, and first light on.
{
digitalWrite(13, 0); //resta acceso in practice e anche in gara e si spegne non appena compare il semaforo spento
}
else
{
digitalWrite(13, 1); // resta spento in gara
}
break;
//**************************************************
but now i have another problem.
i would like to have a led that flashing but every arduino instruction to make a loop in switch case function (like for, while, an a variable that increases, etc) causes the problem "lost protocoll" in Race Coordinator!!!
any suggestions?