Go Down

Topic: (Solved)New I2C LCDs wont work (Read 1 time) previous topic - next topic

Tumbleweed

#5
Jun 23, 2012, 01:36 am Last Edit: Jun 23, 2012, 01:56 am by Tumbleweed Reason: 1
I don't think that is the actual product, mine has no Aduino logo on it.
Just click it and open in a new tab. Just www.geeetech.com.
Here is a link to the product, haven't gotten the .rar document to open yet, but i will.http://www.geeetech.com/arduino-iici2ctwi-1602-serial-lcd-module-display-p-498.html
TJ
Einstein once said you don't really understand anything until you can explain it to your Grandmother

Tumbleweed

OK,
Tried their library, just got compile errors in Arduino 1.0.1.
"
In file included from HelloWorld.cpp:3:
C:\Users\Tom\arduino\arduino-1.0.1\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:81: error: conflicting return type specified for 'virtual void LiquidCrystal_I2C::write(uint8_t)'
C:\Users\Tom\arduino\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'
"

Going back to FMs, and try more stuff. Good thing I'm retired, I could have ordered good ones for all the time I've spent.
TomJ
Einstein once said you don't really understand anything until you can explain it to your Grandmother

bperrybap

If their library (the one you linked to) matches the hardware you have then in order to use fm's library you will have specify
all the bits for the i2c pins because they are different from the default pin mappings.
(The nibbles are flipped).

So when using fm's library you will need this constructor:

Code: [Select]

LiquidCrystal_I2C lcd(0x38, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);


This should set up the proper pin mappings and the pin mapping and polarity for backlight control.

If you want to use the examples, you will need to modify the constructor.

--- bill



Tumbleweed

Thank you so much Bperrybap,
It works fine now.
All I had gotten done was making the backlight stay on with the playground library.
Guess I will  have to put that in each sketch?

Thanks FM for the library and examples too.
TomJ
Einstein once said you don't really understand anything until you can explain it to your Grandmother

Go Up