I am trying to get text characters to come up on my I2C LCD. It's a 16x2 display. It only uses four pins: GND
, 5V
, SCL
and SDA
. I'm not sure how to program it since all I'm finding online is how to program it if my display had 16 pins. I believe the address for my LCD is 0x27.
| |||||
feedback
|
I have a pot connected to my Arduino Uno. This code shows the characters "Voltage=(sensorValue). This way I can turn my pot and my LCD will show how many volts the potentiometer is pushing out.
| |||
feedback
|
You need to use the Arduino I2C libraries: http://www.arduino.cc/en/Reference/Wire As you said your i2c address is 0x27, is it one of these? http://arduino-info.wikispaces.com/LCD-Blue-I2C | |||
feedback
|
For a 4 pin i2c I have used the following page to get it up and running, it was a while ago (and I don't have the hardware/software at this time) http://www.ladyada.net/products/i2cspilcdbackpack/ or if you are just after code the following should work (better) http://forums.adafruit.com/viewtopic.php?f=19&t=21586&p=113177 | |||
feedback
|
It would be helpful if you posted or linked us to the datasheet for your LCD, There is a LiquidCrystal library which supports the Hitachi HD44780 driver that comes with Arduino see the link below for more information... | |||||||
feedback
|