byte counter=0;
void setup() {
Serial.begin(9600);
}
void loop()
{
every();
counter++;
}
void every()
{
static byte lastCount = 0;
if (counter - lastCount == 255U)
{
Serial.print(counter);
Serial.print('\t');
Serial.println(lastCount);
//lastCount = counter;
Serial.println("EVENT");
}
}