Good day,
I have a problem implementing a similar code that is working on a 16x2 LCD to a 20x4 LCD.
They are both different branded LCDs
16x2 is a freetronics 16x2 LCD
&
20x4 is a Optrex 20x4 LCD
I'm sure the connection for my 20x4 is correct because i got it to display simple println stuff and every single pixel is okay.
this is the code i used:
#include <SPI.h>
#include <Ethernet.h>
#include <TextFinder.h>
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
//LiquidCrystal lcd(8,9,4,5,6,7); //16x2 board
LiquidCrystal lcd(12,11,7,6,5,4); //20x4 board
byte mac[] = { 0xA2, 0xB1, 0x9A, 0xD2, 0xB3, 0xC5 };
byte ip[] = {192,168,1,25}; //check ip
byte server[] = {128,242,240,20}; // Twitter
char serverName[] = "api.twitter.com"; // twitter URL
char tweet[140];
EthernetClient client;
TextFinder finder( client );
void setup()
{
lcd.begin(20,4);
//lcd.begin(16,2);
lcd.clear();
lcd.setCursor(0,0);
lcd.write("Initializing");
lcd.setCursor(0,1);
lcd.print("Twitter2LCD...");
delay(3000);
Ethernet.begin(mac,ip);
lcd.clear();
lcd.setCursor(0,0);
lcd.write("Making HTTP");
lcd.setCursor(0,1);
lcd.write("request...");
delay(2000);
}
also my 20x4 LCD is connected this way.
LCD pin 14(DB 7) ----> Arduino digital pin 4
LCD pin 13(DB 6) ----> Arduino digital pin 5
LCD pin 12(DB 5) ----> Arduino digital pin 6
LCD pin 11(DB 4) ----> Arduino digital pin 7
right now, it only displays "Initialising Twitter2LCD" and not "Making HTTP request".
there's more in void(loop) but it's pointless to post it cus the 16X2 goes all the way through the whole program but not the 20X4.
Appreciate the help!
cheers!