title: Lcd screen prints weird symbols instead of numbers
body: <p>I am trying to make a alarm clock with the raspberry pi and an arduino. I have been having this problem that when i use serial communication to send a number it, the lcd doesnt print the number. I know that the arduino is getting the number, for some reason it just wont print it. It instead prints weird symbols and lines. <a href="http://www.doctormonk.com/2012/04/raspberry-pi-and-arduino.html" rel="nofollow">This article shows how i use serial communication between them</a>This is my arduino code.</p>
  
  <pre class="lang-c prettyprint-override"><code>#include &lt;LiquidCrystal.h&gt;
  
  
  const int ledPin = 13;
  LiquidCrystal lcd(12,11,5,4,3,2);
  void setup()
  {
    pinMode(ledPin, OUTPUT);
    Serial.begin(9600);
    lcd.begin(16,2);
    lcd.setCursor(0,1);
    lcd.print("crystralball");
  }
  
  void loop()
  {
  
    if (Serial.available())
    {
       flash(Serial.read() - '0');
    }
    delay(1000);
  }
  
  void flash(int n)
  {
    for (int i = 0; i &lt; n; i++)
    {
      digitalWrite(ledPin, HIGH);
      lcd.clear();
      lcd.write(n);
      Serial.print(n);
      Serial.flush();
      delay(100);
      digitalWrite(ledPin, LOW);
      delay(100);
    }
  
  }
  </code></pre>