I'm pretty new to Arduino and am trying to create a program that will run 2 counters. I will be using a button to increment the counters, each counter has its own button. Then I will be displaying the counts to 4 digits 7 segment displays. I am currently having problems with the displays, they occasionally increment, but for the most part, just say 0000.
I am attaching the program I have made. It is kinda long so I am attaching it as a document. Please help and tell me what I am doing wrong. Thanks in advance!
How are your switches connected? Have you tested them independently of the display with a simple test sketch that only exercises the switches (maybe reports via serial)? Often people fail to connect switches properly or get the circuit wrong.
I'm pretty new to Arduino and am trying to create a program that will run 2 counters. I will be using a button to increment the counters, each counter has its own button. Then I will be displaying the counts to 4 digits 7 segment displays. I am currently having problems with the displays, they occasionally increment, but for the most part, just say 0000. I would love if someone could look at what I've done or sends a code they have made before, and just make it so it works.
I am attaching the program I have made. It is kinda long so I am attaching it as a document. Please help and tell me what I am doing wrong. Thanks in advance!
Other post/duplicate MOVED AND MERGED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.
Continued cross posting could result in a time out from the forum.