PDA

View Full Version : How do I operate an Arduino I2C LCD



menta
- 5th July 2011, 19:03
Hi All,
I bought this Arduino I2C LCD.

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=150618547319&ssPageName=STRK:MEWNX:IT

Can't find any examples or basic code to operate it.
Anyone can advice?
Thanks,
Gil.

mister_e
- 6th July 2011, 01:53
Without the original lib? not likely

^Package Include:


1 X I2C/TWI LCD 1602 Module blue (Please email us for Arduino library for this item)

menta
- 6th July 2011, 15:00
Do you think they have a library for picbasic ?

Archangel
- 10th July 2011, 18:42
Do you think they have a library for picbasic ?
That is doubtful, but a "C" library is likely to be near compatible for PICs, from that you can dissasemble and harvest what you need, maybe. Did you request they send it to you ?
You are going to want to see what is in these 2 files:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
So as to understand what information gets sent to the MCU on the "shield" or Backpack. Essentially all data in an MCU is just numbers, so if you can get that data then you can see what it is doing. I bought some I2C / SPI displays a while back and setup a pic to send numerical data, just counting upward and watched and counted to see what the resulting display was.

menta
- 11th July 2011, 15:04
I bought some I2C / SPI displays a while back and setup a pic to send numerical data, just counting upward and watched and counted to see what the resulting display was.

Can you share your code ?

Darrel Taylor
- 11th July 2011, 19:21
The Arduino Library can be found here ...

http://arduino-info.wikispaces.com/LCD-Blue-I2C

It's Arduino C, but you can see what codes to send.

menta
- 12th July 2011, 08:27
I have this library,
I didn't see any helpful information there.
There is a binary file, maybe it includes something, but how do I open it ?

Gil.

mister_e
- 12th July 2011, 17:51
It's C++, I haven't intensively checked the whole thing but every details seems to be in the .h and .cpp files.

Archangel
- 13th July 2011, 02:28
I am thinking the LCD is a std Hitachi format and the dwenio just passes the data through to the LCD I have not had time to test that though.