Red flashes - Xenon 1.3.0-rc.1 - Assertion Error?

That makes more sense now :wink:

However, it is actually safer to write a delay loop slightly differently

  while (millis() - previousTime < period);

The rational for that is outlined in this post