 }
 
 void loop() {
+  activateDigit(INACTIVE);
+  drawDigit(digits[currentDigitIndex]);
   activateDigit(currentDigitIndex);
-  drawDigit(digits[currentDigitIndex]);
   
   currentDigitIndex++;
   if (currentDigitIndex >= 4) currentDigitIndex = 0;
   
-  delayMicroseconds(500);
-}
+  delayMicroseconds(DIGIT_DELAY);
+}

const int SEGMENT_G_PIN = 13;

const byte DIGIT_OFF = 255;
const byte DIGIT_ON = 10; // increase the value to reduce current

const short MINUS = -1;
const short DEGREE = -2;

int currentDigitIndex = 0;
short digits[4];

void activateDigit(int digit) {
  switch (digit) {

const int DIGIT_DELAY = 500;

const int DIGIT_1_PIN = 3;
const int DIGIT_2_PIN = 5;
const int DIGIT_3_PIN = 6;
