Which LiquidCrystal_I2C library works with arduino IDE 1.6.0?

As the title says, all my LCD skwtches no longer complie with the new 1.6.0 and for some reason I have yet to find the cause for, 1.5.5 no longer works (just get the arduino splash screen then an error message).

Anyone able to help?

Although many error messages seem to be selected at random it still may help to let us know what the one you received actually said.

Don

I am using the F Malpartida New Liquid Crystal Library successfully with both I2C and parallel lcds with 1.6.0.

Thanks for the idea, but even cattledogs lcd doesn't perform for me. Everything was fine until I updated from 1.5.5 to 1.6.0.

here's the error I get compiling the sketch...

In file included from C:\Users\captain\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:35:0,
from fridgefreezerTX_15022015.ino:2:
C:\Users\captain\Documents\Arduino\libraries\LiquidCrystal/LCD.h:421:44: error: 'prog_uchar' does not name a type
void createChar(uint8_t location, const prog_uchar charmap[]);
^
C:\Users\captain\Documents\Arduino\libraries\LiquidCrystal/LCD.h:421:63: error: ISO C++ forbids declaration of 'charmap' with no type [-fpermissive]
void createChar(uint8_t location, const prog_uchar charmap[]);
^
Error compiling.

Does this help at all?

Thanks for the replies.

I am not sure you are actually using the F Malpartida library or if you still have multiple lcd libraries installed, but when I search through LCD.h, all I can find is

void createChar(uint8_t location, uint8_t charmap[]);

You can certainly go into the library you have and change the const prog_uchar charmap[] to uint8_t charmap[]
but it should not be there.

Looking in the 1.6.0 thread I am not the only one with this issue.

I am definitely using the F Malpartida V1.2.1 (that's the latest I could find).

I tried uninstalling ide 1.6.0 and re-downloading and re-installing it. Then deleted the stock LCD library and replaced with F Malpartida as above. Same problem.

Now I have downloaded ide 1.5.5beta and installed, all is well again.

There are many problems with the new ide and for the time being I will stick with 1.5.5.

I'll keep a look out just in case the issues get fixed.

Thanks for your time.

ok,
so tracked this down.
What you are seeing is the result of using a newer set of avr gcc compiler tools with older code.
The newer avr libC removed support for prog_char and the new version of the IDE uses the newer avr gcc package
which includes the newer avr libC.
Therefore prog_char will not work with the newer Arduino IDE.

The issue is the code you are using contains prog_char in LCD.h

I'm guessing that you have pulled an unreleased version of fm's library code rather than use
use one of the pre-built released library zip images in the download area.

I say this because LCD.h was modified to use prog_char on sep 23, 2012
which is in the current head of the tree and is also included in code tagged with "V1.2.2"
however that code was never released as a zip download image.

Given that the new IDE uses the new compiler, and code from fm's repo after sep 22, 2012 will
contain prog_char, it will not work with it.

Without further examination, it is difficult to tell if would be better to use V1.2.1 or just fix
the issue in the tip or V1.2.2

I think I'd just fix the code since the fix is so easy.
You have the source code so just go fix it.
That is beauty of open source you don't have to wait for anybody to fix the code.

Note: I also bugged it so hopefully fm will fix it.

--- bill

Thanks for the advice, but in the end I went back to IDE 1.5.5 - At least it works for me :smiley:

S>

Hello, I use IDE 1.6.7 see:

En la nueva versión de Arduino IDE (1.6.7 por ejemplo) esta librería ha dejado de funcionar, hay que utilizar esta otra LiquidCristal_I2C_1.1 en vez de declarar el LCD con la sentencia LiquidCrystal_I2C lcd(0x27, 20,4); utilizamos esta LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); y en la función setup sustituimos el lcd.init(); por lcd.begin(20,4);

Regards

We are using 1.6.7 and works well.

Posted the library we are using as an attachment, give it a try and see it it helps.

LiquidCrystal_V1.2.1.zip (485 KB)