   B01111101, //6
   B00000111, //7
   B01111111, //8
-  B01101111  //9
+  B01101111, //9
+  B01110111, //A - 10
+  B01111100, //b - 11
+  B00111001, //C - 12
+  B01011000, //c - 13
+  B01011110, //d - 14
+  B01111001, //E - 15
+  B01110001, //F - 16
+  B01110110, //H - 17
+  B00011110, //J - 18
+  B00111000, //L - 19
+  B01010100, //n - 20
+  B01011100, //o - 21
+  B01110011, //P - 22
+  B01100111, //q - 23
+  B01010000, //r - 24
+  B01101101, //S - 25
+  B01000110, //t - 26
+  B00011100, //u - 27
+  B01100110  //y - 28
 };
-int digitBuffer[4] = {
-  0};
+int digitBuffer[4] = {0};
 int digitScan = 0;
  
 void setup(){                

}
 
//writes the temperature on display
void updateDisp(){
  for(byte j=0; j<4; j++)  
    digitalWrite(digitPins[j], LOW);
 
  digitalWrite(latchPin, LOW);  
  shiftOut(dataPin, clockPin, MSBFIRST, B11111111);
  digitalWrite(latchPin, HIGH);
 
  delayMicroseconds(100);
  digitalWrite(digitPins[digitScan], HIGH); 
 
  digitalWrite(latchPin, LOW);  
  if(digitScan==2)
    shiftOut(dataPin, clockPin, MSBFIRST, ~(digit[digitBuffer[digitScan]] | B10000000)); //print the decimal point on the 3rd digit
  else
    shiftOut(dataPin, clockPin, MSBFIRST, ~digit[digitBuffer[digitScan]]);
 
  digitalWrite(latchPin, HIGH);
  digitScan++;
  if(digitScan>3) digitScan=0; 
}
 
void loop(){ 
  digitBuffer[3] = 1;
  digitBuffer[2] = 1;
  digitBuffer[1] = 1;
  digitBuffer[0] = 1;
  updateDisp();
  delay(2);
}

 * Created by Rui Santos, http://randomnerdtutorials.com
*/

const int digitPins[4] = {4,5,6,7};                 //4 common anode pins of the display
//const int clockPin = 11;    //74HC595 Pin 11
#define clockPin 11
//const int latchPin = 12;    //74HC595 Pin 12
#define latchPin 12
//const int dataPin = 13;     //74HC595 Pin 14
#define dataPin 13
const byte digit[38] =      //seven segment digits in bits
{
  B00111111, //0
  B00000110, //1
