Pages: [1]   Go Down
Author Topic: LiquidCrystal_I2C_h not being recognised  (Read 517 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?  smiley-grin thank you
« Last Edit: January 27, 2013, 06:30:53 am by IrishJohn » Logged

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 569
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 48
Posts: 2312
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#include <LiquidCrystal_I2C.h>
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Using Arduino version 1.0.2.
Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 48
Posts: 2312
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: