Go Down

Topic: Bug in LiquidCrystal Library ? (Read 639 times) previous topic - next topic

jmlietaer

Hello,

First of all, I'm new to the forum and to the Arduino.

I saw some strange behaviour through the following sketch:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int sensorPin = 0;
void setup() {
 lcd.begin(16, 2);
 lcd.noCursor();
 Serial.begin(9600);
 char c[15] = "azerty azerty";
 lcd.clear();
//  lcd.print(c);
 lcd.print("azerty azerty");
 lcd.setCursor(0, 1);  
 lcd.print("text here");
 delay(10000);
}
void loop() {
}

Output on the LCD:
  azerty azerty
  tuxt here

After changing the sketch:
  lcd.print(c);
//  lcd.print("azerty azerty");

the output is correct.

I am using 0017 on a MacBook Pro with an Duemilanove ATMEGA328.
LCD is Powertip PC1602Q.

What am I doing wrong ?
Or is this a bug ?

Best regards,

J.M.

Go Up