Issue with SoftwareSerial PLEASE HELP!!!

Hi guys (& ladies).

I am running a sparkfun serial lcd board from an arduino mini. The problem im having is using the second example from:
http://www.arduino.cc/playground/Learning/SparkFunSerLCD
to run the lcd from pin2 not the arduino’s tx (pin 0), hence using SoftwareSerial.
When I try uploading the code to the Arduino Mini, I get the error:
serialLCD_example:30: error: ‘class SoftwareSerial’ has no member named ‘write’

I can change the code from LCD.Write to LCD.Print and it uploads fine however doesn’t display correctly.
This is frustrating the heck out of me as I was working with an lcd via serial about 6 months ago, with no probs.

Thanks in advance.

Here’s the code anyways:

#include <SoftwareSerial.h>

#define txPin 2

SoftwareSerial LCD = SoftwareSerial(0, txPin);
// since the LCD does not send data back to the Arduino, we should only define the txPin
const int LCDdelay=10; // conservative, 2 actually works

// wbp: goto with row & column
void lcdPosition(int row, int col) {
LCD.write(0xFE); //command flag
LCD.write((col + row*64 + 128)); //position
delay(LCDdelay);
}
void clearLCD(){
LCD.write(0xFE); //command flag
LCD.write(0x01); //clear command.
delay(LCDdelay);
}
void backlightOn() { //turns on the backlight
LCD.write(0x7C); //command flag for backlight stuff
LCD.write(157); //light level.
delay(LCDdelay);
}
void backlightOff(){ //turns off the backlight
LCD.write(0x7C); //command flag for backlight stuff
LCD.write(128); //light level for off.
delay(LCDdelay);
}
void serCommand(){ //a general function to call the command flag for issuing all other commands
LCD.write(0xFE);
}

void setup()
{
pinMode(txPin, OUTPUT);
LCD.begin(9600);
clearLCD();
lcdPosition(0,0);
LCD.print(“Hello world!”);
}

void loop()
{
}

As far as I can see SS doesn't have a write() method just as the error says. Did it used to?


Rob

thx for your help. Tell you the truth, I’m not sure. Thats the code from the arduino site tho… so not sure :\

I copy-n-pasted your code in a new sketch (Arduino 1.0) and it compiles just fine...

thanks heaps. I reinstalled the arduino software and problem solved. I would have never guessed it could be that. Its working great now.

It would be nice if you could add [SOLVED] to the topic :)