-->
Page 1 of 4

Lcd 1602 commands.

PostPosted: Wed Jul 13, 2016 4:17 pm
by marcomart
Hello.

I'm trying up with a lcd connected to a I2C interface (piggyback module with onboard pcf8574) but without any success, so I got some doubts. Which is the address that I should set on I2c piggyback? (I suppose 020h).
Is there a code example to how send string to the lcd? Are the right pin on ESP8266, 0 for SCK and 2 for SDA?

Thank You.
Marco.

Re: Lcd 1602 commands.

PostPosted: Wed Jul 13, 2016 4:56 pm
by martinayotte
According to PCF8574 specs, the address 0x20 is for older chip, while PCF8574A is using 0x38.

Re: Lcd 1602 commands.

PostPosted: Wed Jul 13, 2016 4:59 pm
by Mmiscool
https://docs.google.com/document/d/1EiY ... aqkogmp3f9

I2C pins are 0 and 2. On NodeMCU boards they are labeled as D3 and D4.


the address the esp will use for the device is 0x27

internal aurduino code is
Code: Select allLiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address

Re: Lcd 1602 commands.

PostPosted: Thu Jul 14, 2016 10:27 am
by marcomart
Hello!!

Thank You for reply, so if I will use LCDPRINT I will be able to print straight on the lcd or I still need to initialize the LCD sending to it the native command with LCDSEND ? By the way I connected sda and sck signal on the
same pins of rtc module.

Regards.
Marco.