5 minute timer

{% trans 'Sorry, your browser does not support canvas -- please either update your browser or submit your requirements by phone or email.' %}

Accelerometer

Avatar for Steve Kennedy Steve Kennedy

5 minute timer. Left hand column of pixels indicates the number of minutes elapsed. After the display clears press button B to restart the timer. Test or demo this code by setting time to time_fast. Remember to set time to time_normal before using it to indicate real minutes. If you add any code you may need to adjust the time_normal constant to a lower value to ensure that the timer counts the minutes accurately. I've used constants of ON & OFF.rather than 1 & 0 to set the pixels, as this makes the code clearer to me and the pixel setting is even more visually distinct from the loops than the different shade of green.

Report this project
Back to top