Im using a 20X4 JHD 204A LCD screen in my project. The project also has an accelerometer connected to the Arduino.
The pin layout is as follows:
ARDUINO UNO LCD ADIS 16210
12 4 MOSI
The code is as follows:
//Add the SPI library so we can communicate with the ADIS16210 sensor
// Add the Liquid crystal library
//For ADIS 16210 , Assign the Chip Select signal to pin 10.
// initialize the library with the numbers of the interface pins
//Initiate an SPI communication instance.
//Configure the SPI connection for the ADIS16210.
//Set up the Chip Select pin to be an output from the Arduino.
//Before communication starts, the Chip Select pin needs to be set high.
The problem is that lcd.clear() is displaying a garbage character on the LCD and also it is not setting the cursor back to (0,0).
The LCD displays the word "Panther" continuously on the screen like autoscrolling and not overwriting it on the same position.
Any help will be appreciated.