LCD-Display

Hello!
I hope anyone can help me to get a better display-reading!

You see the arduino-code and as attachment the result!
When i use the example "hello world" all is fine!
I hope anyone can help me!
Best regards
peter

/*

LCD Anschluss:

  • LCD RS an Arduino Pin 12
  • LCD Enable an Arduino Pin 11
  • LCD D4 an Arduino Pin 5
  • LCD D5 an Arduino Pin 4
  • LCD D6 an Arduino Pin 3
  • LCD D7 an Arduino Pin 2
  • LCD R/W an Arduino Ground
  • 10K Widerstand von Arduino:

Quelle:
Library originally added 18 Apr 2008
by David A. Mellis
library modified 5 Jul 2009
by Limor Fried (http://www.ladyada.net)
example added 9 Jul 2009
by Tom Igoe
modified 22 Nov 2010
by Tom Igoe
modified 14.12 2016
INO Sketch modified
by Skino

This example code is in the public domain.

*/

// include the library code:
#include <LiquidCrystal.h>
#include <string.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
lcd.begin(16, 2);
Serial.begin(9600);

}

void loop() {

if (Serial.available()) {

delay(100);

lcd.clear();

while (Serial.available() > 0) {

lcd.write(Serial.read());
}
}
}

pe_martin:
Hello!
I hope anyone can help me to get a better display-reading!

You see the arduino-code and as attachment the result!
When i use the example "hello world" all is fine!
I hope anyone can help me!
Best regards
peter

/*

LCD Anschluss:

  • LCD RS an Arduino Pin 12
  • LCD Enable an Arduino Pin 11
  • LCD D4 an Arduino Pin 5
  • LCD D5 an Arduino Pin 4
  • LCD D6 an Arduino Pin 3
  • LCD D7 an Arduino Pin 2
  • LCD R/W an Arduino Ground
  • 10K Widerstand von Arduino:

Quelle:
Library originally added 18 Apr 2008
by David A. Mellis
library modified 5 Jul 2009
by Limor Fried (http://www.ladyada.net)
example added 9 Jul 2009
by Tom Igoe
modified 22 Nov 2010
by Tom Igoe
modified 14.12 2016
INO Sketch modified
by Skino

This example code is in the public domain.

http://www.arduino.cc/en/Tutorial/LiquidCrystalSerial
*/

// include the library code:
#include <LiquidCrystal.h>
#include <string.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
lcd.begin(16, 2);
Serial.begin(9600);

}

void loop() {

if (Serial.available()) {

delay(100);

lcd.clear();

while (Serial.available() > 0) {

lcd.write(Serial.read());
}
}
}

Edit your post and add the proper code tags for the arduino sketch.
Use the Arduino IDE to format the code for the forums.

Post links to the display you are using.
Which Arduino board are you using?
Which version of Arduino IDE are you using?
what operating system are you using?
Linux, MacOSX, MS Windows, other