PressTheButtonGame-with-dsPIC33ck Video explanation here: https://youtu.be/DPfZJjiQV3U Timer 0 of the microcontroller is configured for switching the LEDs based on the time delay.