4-Digit Display Error

Are you sure you are sending enough chars before \n ?