Or just use a MAX7219 ($1.25) & set it up in no-decode mode for 4 digits. 4 SPI writes & have nice quick animations.