but with a little change in the init lines:
LiquidCrystal_I2C lcd(0x20, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Addr, En, Rw, Rs, d4, d5, d6, d7, backlighpin, polarity This is IIC Serial 20X4 LCD module . With this I2C interface LCD module, you will be able to realize data display via only 2 wires. If you already has I2C devices in your project, this LCD module actually cost no more resources at all. It is fantastic for Arduino based project.
Interface: I2C
I2C Address: 0x27(address can\'t be changed )
Sofware version :0022
SDA (DATA) -> analog input pin 4
SCL (CLOCK) -> analog input pin 5
Pin Definition : GND、VCC、SDA、SCLBack lit (Yellow with black char color)Supply voltage: 5VPcb Size : 60mm×99mmContrast Adjust : PotentiometerBacklight Adjust : Jumper
Arduino Test Code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); //set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); 1);
lcd.print(\"Voltage: \");
lcd.setCursor(13, 1);
lcd.print(\"V\");
}
void loop()
{
int val;
float 1);
lcd.print(0x30+val/100,BYTE);
lcd.print(0x30+(val%100)/10,BYTE);
Package includes:
1PCS IIC/I2C/TWI/SPI Serial Interface2004 20X4 Character LCD Module Display Yellow
Payment
Payment
Payable To
Note
PayPal
All payments are due within 7 days of the close of sale. Failing to do so, non-paying buyers will be reported to .
Shipping Policy
Delivery Time
We ship to worldwide, it usually takes 10-30 Business Days to delivery.
Shipping address
We ship to your PayPal address. Please, make sure to provide us with correct, precise, and detailed shipping Address.
Send Time
Items will be shipped within 1 to 3 business days upon payment received or cleared.
Note
If you don\'t receive items over 30 business days, please notify us via message.
Return Policy We appreciate your business and offer an instant 7 days return policy.(7 days after receive the item). The returned item has to be in its original condition. We are able to refund your money without shipping cost. Contact us For anything about product, price, shipping or order status, please contact us via message.
We love positive response and 5 scores DSR. We will leave it for everyone that leaves it for us.
When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.