Don't block button input for a whole second when flashing an alert
The current code runs sleep(1)
to control the frequency of the alert flash. This is somewhat dumb, as for that whole second, no input from the buttons can be received.
A separate alert counter in page_loop()
should probably implemented to track how much time the "flash" has been displaying instead and to turn it off after a second (and vice-versa).