Remove these ads by
Signing UpStep 1: Display info
This is the way the display works. It's multiplexed, so you select the digit by setting its pin (we'll get into pins later) HIGH, and you select the segment by setting its pin LOW. You display multiple digits at once by rapidly cycling through them.
The Pins (digits are numbered from the left):
Digit 1: 1
Digit 2: 2
Digit 3: 6
Digit 4: 8
Segment A: 14
Segment B: 16
Segment C: 13
Segment D: 3
Segment E: 5
Segment F: 11
Segment G: 15
Decimal Point: 7







































Visit Our Store »
Go Pro Today »




for the counter code, to get the right side digit to display the second i flipped the DIGITs order from your code:
//int d4 = 9; int d3 = 10; int d2 = 11; int d1 = 12;
to:
int d4 = 12; int d3 = 11; int d2 = 10; int d1 = 9;
now it displays correctly with the fast counting digit to the right side, decimal second to the left etc.
void loop() {
buttonState = digitalRead(13)
if (buttonState == LOW) {
[insert counting program here]
}
and good luck to you too for the contest