I2C lcd display address

#1

I am new to XOD and I can’t figure out the ADDR port and how to wire up my board.
my screen is 0X20.
thank you to anyone who can help me out.

#2

Hello! XOD currently accepts decimal numbers only. 0x20 is a hexadecimal equal to 32 decimal. Use ADDR = 32 for your LCD

#3

thanks for the tip.
I noticed that the ADDR is the only numeric input into the LCD 16x2 I2C block. Does this number also tell the Arduino what pins I will use to wire up the I2c chip? If so what pins and how do you tell?

#4

Pins used by I2C are hard-coded into the Wire library and vary by Arduino model. You can find a listing here: https://www.arduino.cc/en/Reference/Wire

1 Like
#5

Hello, The LCD as it comes is a Parallel interface. There is not an address as such. Just data and control lines. HOWEVER, if you use one of the many I2c driver PCBs, you then have the ability to drive more than one on a single processor. One of the outboard PCBs that I use is from Amazon that costs less than 10 bucks for 10 of them.!

SODIAL® 10pcs I2C Serial Interface Adapter
$8.96 ](https://www.amazon.com/SODIAL-
FREE Shipping

They work GREAT. Their address is simply set with some solder jumpers on the A0, A1, and A2 pads.

Using the Adafruit display adaptor you would use address decimal 0.

// Connect via i2c, default address #0 (A0-A2 not jumpered)
Adafruit_LiquidCrystal lcd(0);

The address on PCB I am using, starts with address 63 decimal and goes up from there depending on the jumper settings.

image

I hope this helps. Don’t forget, any PARALLEL connections ( Could be four or eight databits ) does not have an address as such. It is just a dumb interface that depends on the ports you are using on the Micro.
Dave