Go Down

Topic: LiquidCrystal_I2C_h not being recognised (Read 951 times) previous topic - next topic


Jan 26, 2013, 11:24 pm Last Edit: Jan 27, 2013, 12:30 pm by IrishJohn Reason: 1
I'm new to Arduino so bear with me, I want to connect a I2C Lcd unit to the Uno board and i have downloaded and unzipped the I2C Lcd library files and put them in the library folder. it seems that the IDE cant see the header file as it is not highlighted (wont turn orange) when I #Iinclude it in the sketch and when i verify i get the error message LiquidCrystal_I2C does not name a type, is there something else I need to do with these files apart from dropping them in to the library folder?  :D thank you


What version of IDE? Have you restarted IDE after copying the files into the libraries folder? You should have a LiquidCrystal_I2C folder inside libraries, with all thw files inside.

FYI, You might also like to consider the New Liquid Crystal Library from fm, as it is a replacement for both LiquidCrystal AND LiquidCrystal_I2C in a single library, with optimisations in speed - https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home


is there something else I need to do with these files apart from dropping them in to the library folder?

Yes. Chek your code for speling mistakes.  In mine, the text LiquidCrystal is orange, using the standard Arduinop IDE.

Code: [Select]
#include <LiquidCrystal_I2C.h>



Using Arduino version 1.0.2.

That should not make any difference. You might try showing your code, particularly if it has not been lifted virgo intacto from an example. But, before you do so, compare the critical include line with the title of your post.


I'm not sure what I did but the LiquidCrystal_I2C_h header file is at last being recognized and the programs are working fine, when i find out what I was doing wrong I'll post it here, thanks everybody

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131