Hello,
first of all, I’m new to Arduino’s world.
Sorry if this question is very basic.
I simply want to print a string on a Parallax YJ-162A lcd screen.
This is the code
#include <SoftwareSerial.h>
SoftwareSerial lcd = SoftwareSerial(2, 6); //Set RX/TX pins for LCD
void setup(){
ds = "test";
Serial.begin(9600);
lcd.begin(9600);
serial.print(ds);
lcd.print(ds);
}
The compiler returns an error on line lcd.print(ds);
I don't understand why it is working with serial monitor and not with lcd.
this works fine : lcd.print("test");
If ds is a char it also works so I must convert a string to char ?
Or SoftwareSerial.h is wrong ?
Do you have a suggestion ?
Thanks for your help.