LiquidCrystal I2C

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

LiquidCrystal I2C

Postby platypus » Mon Feb 04, 2013 10:48 pm

The LiquidCrystal-I2C sketch wont compile and gives this error ..no matching function for call 'LiquidCrystal::LiquidCrystal(int)'

The 'regular' Liquid Crystal sketch in the same Examples folder compiles OK - no errors.

All the support .c and .h files are in the new (I2C) LiquidCrystal library folder and the regular LiquidCrystal compiles.

Any ideas?
platypus
 
Posts: 34
Joined: Thu Jan 19, 2012 12:47 am

Re: LiquidCrystal I2C

Postby adafruit_support_bill » Tue Feb 05, 2013 6:13 am

Did you remove the old LiquidCrystal Library?
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: LiquidCrystal I2C

Postby platypus » Tue Feb 05, 2013 7:46 pm

Yes eventually, but first I just renamed the folder and later decided to place this folder within another folder.

Then it worked as the compiler could not see it.

My bad - should have followed your notes to the letter. Thanks for your reply.
platypus
 
Posts: 34
Joined: Thu Jan 19, 2012 12:47 am

LiquidCrystal I2C - background light intensity

Postby platypus » Tue Feb 05, 2013 7:52 pm

Do you have a method to reduce the intensity of the background light?

The Contrast only affects the characters leaving the "blind your eye" background light.

I read somewhere that pin 15 via a resistor/pot might work.

If so, can you recommend a suitable trimpot size and or procedure to effect a reduced intensity level?
platypus
 
Posts: 34
Joined: Thu Jan 19, 2012 12:47 am

Re: LiquidCrystal I2C

Postby adafruit_support_bill » Tue Feb 05, 2013 8:02 pm

You would probably need a few hundred ohms or so, depending on how much you want to dim it. It would be tough to get at on that board though without de-soldering the display. Another option would be to put it behind a smoked acrylic faceplate.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: LiquidCrystal I2C

Postby platypus » Tue Feb 05, 2013 8:37 pm

Thanks, that's exactly where it's going - behind dark tinted 3mm polycarbonate. However I still want to dim the backlight.

But is it pin 15 that should be broken - easy to do before assembly. The pot can be mounted between the screen and I2C pcb as I have lifted the I2C board 3mm using two short pieces of heat shrink at the end terminals before soldering from the center outwards. This also gives a nice space between the two boards.

For anyone there who is interested, I had to stop the annoying update blink screen refresh by this method - if anyone knows of another I would be interested.

In void loop()

lcd.setCursor(0,0); //sets beginning of line 1
lcd.print( your code for line 1);
lcd.setCursor(0,1); //sets beginning of line 2
lcd.print(your code for line 2);
// no more blink
Comment - this causes a refresh of each line without any blinking, giving a nice update of the sensor data.

If lcd.clear();
is used the whole display will blink annoyingly - at least with this 2 line charactor lcd screen.
With my older Freetronics lcd screens that use 6 lines there is no blinking. Different tech.
platypus
 
Posts: 34
Joined: Thu Jan 19, 2012 12:47 am

Re: LiquidCrystal I2C

Postby adafruit_support_bill » Tue Feb 05, 2013 8:59 pm

Pin 15 should work. But if it is an RGB backlight, the colors may shift a bit as you dim it. To balance the colors, you would need individual trim-pots on pins 16, 17 & 18.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: LiquidCrystal I2C

Postby platypus » Tue Feb 05, 2013 9:38 pm

I used the 1K trimpot that came with the white on blue 2 line character screen.

I cut the pin 15 header - as I had lifted it 3mm it was easy to just take out a piece to break the line. Then just added the trimpot across the board terminals - works perfectly.

Thanks for your help.
platypus
 
Posts: 34
Joined: Thu Jan 19, 2012 12:47 am

LiquidCrystal I2C

Postby zdendule » Thu Feb 07, 2013 8:30 am

Hallo,
Can anybody help me? I have plugged converter from I2C to 4bit for LCD, I implemented your library and compile is OK. But LCD not show characters and backlight blinking chaotic. The wires are plugged by right. Which format I must write the number of adress I2C to sketch. A7 or 0xA7? I don´t know where is problem.
Last edited by zdendule on Thu Feb 07, 2013 10:33 am, edited 1 time in total.
zdendule
 
Posts: 4
Joined: Thu Feb 07, 2013 8:18 am

Re: LiquidCrystal I2C

Postby adafruit_support_bill » Thu Feb 07, 2013 8:49 am

Post photos showing the front and back and all your connections and we will check it out.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: LiquidCrystal I2C

Postby zdendule » Fri Feb 08, 2013 8:32 am

OK, thank you. There are photos.
IMAGE_123.jpg
I2C
IMAGE_123.jpg (758.18 KiB) Viewed 377 times
zdendule
 
Posts: 4
Joined: Thu Feb 07, 2013 8:18 am

Re: LiquidCrystal I2C

Postby zdendule » Fri Feb 08, 2013 8:34 am

And second photo.
IMAGE_124.jpg
interface
IMAGE_124.jpg (807.03 KiB) Viewed 375 times
zdendule
 
Posts: 4
Joined: Thu Feb 07, 2013 8:18 am

Re: LiquidCrystal I2C

Postby adafruit_support_bill » Fri Feb 08, 2013 8:37 am

That doesn't look like one of our display backpacks.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: LiquidCrystal I2C

Postby zdendule » Mon Feb 25, 2013 4:36 am

Yes, I firstly found interface on web and past it I found library for it. But during the search I found your forum.
zdendule
 
Posts: 4
Joined: Thu Feb 07, 2013 8:18 am

Re: LiquidCrystal I2C

Postby adafruit_support_bill » Mon Feb 25, 2013 5:56 am

You should contact the manufacturer. Unless their hardware implementation is identical to ours, there is no guarantee that our library will work.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Next

Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: mibignistinly and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]