connect problem with LCD

I have a WH1602A-NYG-JT# LCD display, which has three pins, 0V, +5V and IN. I am not sure how to connect the IN pin to Arduino, can I connect it to any digital pin?

I downloaded SparkSoftLCD-master and ArduinoSerLCD-master library, but when I open the example of SparkSoftLCD-master by using Arduino, I cannot upload this programme to arduino, the problem is as following. is anyone know how to solve this problem? thanks a lot!

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde: In function ‘void loop()’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde:42:23: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

lcd.print(“Arming”);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde:50:19: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

lcd.print(“16”);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde:52:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

lcd.print("---------------*");

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde:76:23: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

lcd.print("(boom)");

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde: In function ‘void show_setup()’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde:86:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

lcd.print(“I am setting up!”);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\example\lcd_example\lcd_example.pde:100:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

lcd.print(“One more moment”);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:49:1: error: ‘SparkSoftLCD’ does not name a type

SparkSoftLCD::SparkSoftLCD(uint8_t transmitPin)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:56:1: error: ‘SparkSoftLCD’ does not name a type

SparkSoftLCD::SparkSoftLCD(uint8_t transmitPin, uint8_t width)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:67:6: error: ‘SparkSoftLCD’ has not been declared

void SparkSoftLCD::begin(long speed)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: In function ‘void begin(long int)’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:69:3: error: ‘_baudRate’ was not declared in this scope

_baudRate = speed;

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:70:3: error: ‘_bitPeriod’ was not declared in this scope

_bitPeriod = 1000000 / _baudRate;

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:72:16: error: ‘_transmitPin’ was not declared in this scope

digitalWrite(_transmitPin, HIGH);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: At global scope:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:77:6: error: ‘SparkSoftLCD’ has not been declared

void SparkSoftLCD::print(uint8_t b)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: In function ‘void print(uint8_t)’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:79:7: error: ‘_baudRate’ was not declared in this scope

if (_baudRate == 0)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:82:18: error: ‘_bitPeriod’ was not declared in this scope

int bitDelay = _bitPeriod - clockCyclesToMicroseconds(50); // a digitalWrite is about 50 cycles

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:85:16: error: ‘_transmitPin’ was not declared in this scope

digitalWrite(_transmitPin, LOW);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:111:6: error: ‘SparkSoftLCD’ has not been declared

void SparkSoftLCD::print(char c)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: In function ‘void print(int)’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:118:17: error: call of overloaded ‘print(long int)’ is ambiguous

print((long) n);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:118:17: note: candidates are:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:77:6: note: void print(uint8_t)

void SparkSoftLCD::print(uint8_t b)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:102:6: note: void print(char*)

void SparkSoftLCD::print(char *s)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:102:6: note: no known conversion for argument 1 from ‘long int’ to ‘char*’

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:111:6: note: void print(char)

void SparkSoftLCD::print(char c)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:116:6: note: void print(int)

void SparkSoftLCD::print(int n)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: At global scope:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:121:6: error: ‘SparkSoftLCD’ has not been declared

void SparkSoftLCD::print(unsigned int n)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: In function ‘void print(unsigned int)’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:123:26: error: call of overloaded ‘print(long unsigned int)’ is ambiguous

print((unsigned long) n);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:123:26: note: candidates are:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:77:6: note: void print(uint8_t)

void SparkSoftLCD::print(uint8_t b)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:102:6: note: void print(char*)

void SparkSoftLCD::print(char *s)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:102:6: note: no known conversion for argument 1 from ‘long unsigned int’ to ‘char*’

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:111:6: note: void print(char)

void SparkSoftLCD::print(char c)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:116:6: note: void print(int)

void SparkSoftLCD::print(int n)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:121:6: note: void print(unsigned int)

void SparkSoftLCD::print(unsigned int n)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: At global scope:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:126:6: error: ‘SparkSoftLCD’ has not been declared

void SparkSoftLCD::print(long n)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: In function ‘void print(long int)’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:132:20: error: ‘printNumber’ was not declared in this scope

printNumber(n, 10);

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: At global scope:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:135:6: error: ‘SparkSoftLCD’ has not been declared

void SparkSoftLCD::print(float n, uint8_t p)

^

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp: In function ‘void print(float, uint8_t)’:

C:\tao software\Aduino\Arduino\libraries\SparkSoftLCD-master\SparkSoftLCD.cpp:143:37: error: ‘printNumber’ was not declared in this scope

printNumber( (unsigned int) n, 10 );

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

If you expect any useful help you will have to provide some useful information.

The device itself appears to be a standard character mode LCD and without any other information I would be cautioning you about the fact that the connections (for the one I found on-line) are at the lower left of the pc board instead of at the upper left. These devices frequently have a nonstandard pinout meaning that pin 1 may not be at the outer edge of the pc board, etc.

On the other hand you mention only three connections implying that there is some sort of adapter board between your display and the Arduino. Since the only I/O pin on that adapter is labeled 'IN' that implies a serial interface, but not I2C but as is currently quite popular.

The error messages seem to indicate that the Arduino IDE could not find whatever library your missing code is trying to use.

You really should read the instructions on how to use the forum software, particularly the part concerning the use of code tags.

Don