luni
Well-known member
... then everything works correctly, but I don't want to use Delay()
You can use elapsedMillis instead:
Code:
elapsedMillis stopwatch;
void setup()
{
//....
}
void loop()
{
if(stopwatch > 500)
{
Serial7.print("IF;");
Serial7.flush();
stopwatch-=500;
}
}
BTW: why don't you want to use delay?