Step 2: Wiring the Display and Button
Now, to wiring! To make it easier for you, I am going to put the Arduino pin number first, then the display's pin number.
1--14
2--16
3--13
4--3
5--5
6--11
7--15
8--7
9--1 (resistor)
10--2 (resistor)
11--6 (resistor)
12--8 (resistor)
If this is too confusing, say so in the comments, and I'll rewrite it.
Connect the button to Arduino pin 13 and 5V.
I used 1K resistors, but you could get away with less.
Remove these ads by
Signing Up





































Visit Our Store »
Go Pro Today »




void loop() {
buttonState = digitalRead(13)
if (buttonState == LOW) {
[insert counting program here]
}