I have been trying to use the Sparkfun serial enabled LCD screen with my Arduino Due today. When trying to compile the example code from the website, I came to the following problem:
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:128: error: #error This version of SoftwareSerial supports only 20, 16 and 8MHz processors
Due is 84MHz so this library seems not to support the Arduino Due...
Is there an alternative library for the Due to use the LCD screen (so SoftwareSerial)? Basically, to use any of the TX/RX ports?
I googled for "Sparkfun serial enabled LCD screen" and the Sparkfun website shows a dozen of LCDs. Most of them require 5V TTL serial (DUE works with 3.3V). Which one you are using? LCD-??????
Also, SoftwareSerial is a good 'crutch' AVR serial library (not intended for DUE) and Mark is right. DUE doesn't need SoftwareSerial given its 4 serial ports (like Mega).
Its the Serial Enabled 16x2 LCD - Black on Green 3.3V from Sparkfun. I cant get it working via the Serial0, Serial1, Serial2, etc. (Probably because I dont know how to work with it..) How can I work with hardware serial?
If you can help me out with a library I would really appreciate that.
I assume from your description that you have a Sparkfun model LCD-09066, then, let's start trying to make your LCD to work, for example, with Serial1 on DUE. For that you just need to connect your LCD as the following picture:
Note from Sparkfun:
"Though the silkscreen may say '5V', this is a 3.3v Serial LCD. Connect to a 3.3v power source".
Tweaking a bit the sample1 from Sparkfun, try the following sketch:
void setup()
{
Serial1.begin(9600); // set up serial port for 9600 baud
delay(500); // wait for display to boot up
}
void loop()
{
Serial1.write(254); // move cursor to beginning of first line
Serial1.write(128);
Serial1.write(" "); // clear display
Serial1.write(" ");
Serial1.write(254); // move cursor to beginning of first line
Serial1.write(128);
Serial1.write("Hello, world!");
while(1); // wait forever
}