#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()