LCD library compiling problem

Hi all,
I am having a problem with the lcd library compiling. I am new to this and am trying to learn the ins and outs. I started with the sample program here:

LiquidCrystal Library - scrollDisplayLeft() and scrollDisplayRight()

Demonstrates the use a 16x2 LCD display. The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.

This sketch prints “Hello World!” to the LCD and uses the
scrollDisplayLeft() and scrollDisplayRight() methods to scroll
the text.

The circuit:

  • LCD RS pin to digital pin 12
  • LCD R/W pin to digital pin 11
  • LCD Enable pin to digital pin 10
  • LCD D4 pin to digital pin 5
  • LCD D5 pin to digital pin 4
  • LCD D6 pin to digital pin 3
  • LCD D7 pin to digital pin 2
  • 10K resistor:
  • ends to +5V and ground
  • wiper to LCD VO pin (pin 3)

Library originally added 18 Apr 2008
by David A. Mellis
library modified 5 Jul 2009
by Limor Fried
example added 7 Jul 2009
by Tom Igoe

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(2, 16);
// Print a message to the LCD.
lcd.print(“hello, world!”);

void loop() {
// scroll 27 positions (display length + string length) to the left:
for (int positionCounter = 0; positionCounter < 27; positionCounter++) {
// scroll one position left:
// wait a bit:

// scroll 27 positions (display length + string length) to the right:
for (int positionCounter = 0; positionCounter < 27; positionCounter++) {
// scroll one position right:
// wait a bit:

I am getting the following error
error ‘class LiquidCrystal’ has no member named ‘begin’ In function ‘void loop()’:

I have not a clue I may have the library in the wrong file I maybe useing the wrong lib. I got this library someplace and did not write down the aurthor so I do not know who it belongs to. I would like to get past this and figure out the lcd part all help would really be apreceated.
Hugh :slight_smile:

Well, it's saying that your lcd.begin command isn't... well a command! Might be an older library? I'm not sure, but you should check out Ladyada's updated version, I believe its 100% compatible with the tutorials, just has some updates. It is going to be the LiquidCrystal library in 0017.

Do keep in mind, you need to remove your old LiquidCrystal library (Arduino0016\hardware\libraries) so you don't run into any errors.:D

where can i get 17?

It's not out yet, this was just an updated version of LiquidCrystal that will be available in 0017. Right now it's just a update, when 0017 comes out, it will be the official LiquidCrystal library.

Ok I have the file where do I put it?? and be nice ;-) Hugh

ok I got it now not that easy for a dummy. Now I have to figure out how to use the spi thanks all