Large Seven Segment display with Digi Driver

Hi,

I was wondering if someone could help me, I am building a large stopwatch and i am and stuck on the last bit of my code.

So i am using four 7-Segment Displays - 6.5" (Red) with the Spark Fun Large Digit Driver attached. The 7 segment displays work perfectly. I have a start/stop switch attached and a reset switch attached. Now the problem i have is a cant get the stop to work. Start works perfectly but when i hit the switch again it doesn’t stop. If some one could help it would be much appreciated.

Many thanks

Nick

Hi Nick.

It sounds like your code is stuck in a loop and isn’t checking for a ‘Stop’ button press. Make sure you put something in your loop that checks, OR you might look at using an [interrupt to catch a ‘Stop’ press.](attachInterrupt() - Arduino Reference)

Hi Chris

Thank you for the reply, some one suggested a state change and that worked a treat

Many thanks

Nick