#include <SevSeg.h>
SevSeg sevseg; //Instantiate a seven segment controller object
// Define the pins that will be used.
// These are global constant variables.
#define LED_PIN A5
const int BUTTON_PIN = 1;
byte SEGMENT_PIN[8] = {2, 3, 4, 5, 6, 7, 8, 9};
// These correspond to A, B, C, D, E, F, G, DP
void setup(){
pinMode(BUTTON_PIN, INPUT_PULLUP);
byte numDigits = 1;
byte digitPins[] = {};
bool resistorsOnSegments = true;
byte hardwareConfig = COMMON_CATHODE;
sevseg.begin(hardwareConfig, numDigits, digitPins, SEGMENT_PIN, resistorsOnSegments);
sevseg.setBrightness(90);
} // void setup()
void loop() {
// First, wait until the button is pushed.
// do {} while (digitalRead(BUTTON_PIN) == HIGH);
// Now, count down 5 seconds.
/*
for (int i = 5; i > 0; --i)
{
*/
sevseg.setNumber(4);
sevseg.refreshDisplay();
// }
// unsigned long int start_countdown = millis();
} // void loop()
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
sevseg1:COM.1
sevseg1:COM.2
sevseg1:A
sevseg1:B
sevseg1:C
sevseg1:D
sevseg1:E
sevseg1:F
sevseg1:G
sevseg1:DP
r1:1
r1:2
led1:A
led1:C
r2:1
r2:2