I just compiled this on Arduino 1.0 and burned it to an ATtiny85 using my UNO as an AVRISP (running Ladyada code) and it worked OK. The SparkFun board is a bit flaky sometimes, but it is the only 4 line LCD I have on the bench. I usually use the OLED displays from phanderson.com (RevEd.... the 18M2 serial to parallel is open source.)
#include <SoftwareSerial.h>
long count = 0;
// SparkFun 4 line by 20 characters
char cLCD = 254;
char LCD1 = 0;
char LCD2 = 64;
char LCD3 = 20;
char LCD4 = 84;
SoftwareSerial oSerial(2, 3); // RX, TX from PC perspective
// RX is actually the send (output) from the ATmel to display
void setup()
{
// set the data rate for the SoftwareSerial port
oSerial.begin(9600);
delay (500);
// oSerial.println("Hello, world?");
}
void loop() // run over and over
{
count++ ;
oSerial.print(cLCD);
oSerial.print(LCD1);
oSerial.print("Now in loop count: ");
oSerial.print(count);
count++ ;
delay(1000);
oSerial.print(cLCD);
oSerial.print(LCD2);
oSerial.print("Now in loop count: ");
oSerial.print(count);
count++ ;
delay(1000);
oSerial.print(cLCD);
oSerial.print(LCD3);
oSerial.print("Now in loop count: ");
oSerial.print(count);
count++ ;
delay(1000);
oSerial.print(cLCD);
oSerial.print(LCD4);
oSerial.print("Now in loop count: ");
oSerial.print(count);
delay(1000);
}
Please note that I used the boards and variants definition from MIT:
http://hlt.media.mit.edu/?p=1695- Ray