Pages: [1]   Go Down
Author Topic: Bug in LiquidCrystal Library ?  (Read 619 times)
0 Members and 1 Guest are viewing this topic.
Belgium
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: