Go Down

Topic: Bug in LiquidCrystal Library ? (Read 710 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy