just use M=MAINCNT REPEAT BACKCOLOR #WHITE WAIT 30 BACKCOLOR #BLACK WAIT 30 UNTIL MAINCNT - M > 300 adjust this to lengthen or shorten the flashing time