Loading...
Pages: [1]   Go Down
Author Topic: Problem with LiquidCrystal_I2C library  (Read 1818 times)
0 Members and 1 Guest are viewing this topic.
Buena Vista, CO
Offline Offline
Full Member
***
Karma: 0
Posts: 161
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I building a project which is well along using Arduino 1.0.1. I want to add a 20x4 LCD. The one I bought used an I2C connection.
A test sketch from the vendor would not compile error free, and I determined it's library is for Arduino 022. I have
searched the web for a library that works with 1.0.1. I found one from Yourduino at
http://arduino-info.wikispaces.com/LCD-Blue-I2C.
Using library labeled "LiquidCrystal_I2C Library for 20 character 4 line displays" which says on the page it is for 1.0.1.
And the sketch Example "Software Sketch for 4 line 20 character Displays", at bottom of page.

Arduino 1.0.1 gives this error

C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:
In member function 'void LiquidCrystal_I2C::expanderWrite(uint8_t)':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:261:
error: 'class TwoWire' has no member named 'write'

Does anyone how to fix this?

Jim               
Logged

8000ft above the average

Málaga, Spain
Offline Offline
Edison Member
*
Karma: 34
Posts: 2031
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That library doesn't seam to be very happy on 1.0.1.
You could use the New LiquidCrystal library: https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home

You will need to configure the pinout for your LCD in the variable creation as indicated in the LiquidCrystal_I2C.h.

This library is compatible both for IDE 22 and IDE 1.0.1.
Logged

   

Buena Vista, CO
Offline Offline
Full Member
***
Karma: 0
Posts: 161
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for responding "fm"! I changed the name of the liquid Crystal_I2C library and loaded the one you suggested. Ran an example, got this error:

C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp: In member function 'int I2CIO::begin(uint8_t)':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:68: error: 'class TwoWire' has no member named 'read'
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp: In member function 'uint8_t I2CIO::read()':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:121: error: 'class TwoWire' has no member named 'read'
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp: In member function 'int I2CIO::write(uint8_t)':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:144: error: 'class TwoWire' has no member named 'write'

Still lost

Jim
Logged

8000ft above the average

Pages: [1]   Go Up
Print
 
Jump to: