I'm up to step 5, loading the test sketch, and am getting the following error:
Arduino: 1.6.5 (Windows 7), Board: "Arduino Uno"
LCD_Test.ino:19:31: fatal error: LiquidCrystal_I2C.h: No such file or directory
compilation terminated.
Error compiling.
I downloaded the library, renamed the original library LiquidCrystalold, and copied the downloaded and extracted one into the same folder (Arduino/Libraries). It's the first time I've added a library so I'm guessing I screw up somewhere but I'm not sure where.
I had restarted the IDE but I've discovered my problem and perhaps you can explain the "why" of this to me....... I have two libraries folders. One is at C:\Program Files (x86)\Arduino\libraries. That is where the original LiquidCrystal library was and it is where I had put the new one. Then I took a look at File-Preferences and the sketchbook location is listed as C:\Users\Bill\Documents\Arduino. I followed that path and found an empty libraries folder so I copied the LiquidCrystal library to that location, restarted the IDE and it compiled for me. So, does that mean I should move all the libraries to that location? Or is it just because I added this library that it has to be there?
So, does that mean I should move all the libraries to that location? Or is it just because I added this library that it has to be there?
Core libraries belong in C:\Program Files (x86)\Arduino\libraries (on your system; a different place on mine). User (downloaded or written) libraries go in C:\Users\Bill\Documents\Arduino\libraries.
It did not used to matter which of the libraries folders you put user libraries in. With some newer versions of the IDE, it does seem to matter.
It's better to put them in the user folder, so that an upgrade to a newer version of the IDE doesn't wipe them out.
BillMurphy,
You may want to take a look at my hd44780 library.
It includes support for i2c backpack based LCDs.
It can automatically locate the i2c address and auto detect the pin mappings.
It is easier to install as you can install it directly from the IDE GUI using the IDE library manager.
The i/o class for i2c backpacks is hd44780_I2Cexp
The library package includes a diagnostic sketch I2CexpDiag to test your i2c connections and the internal LCD memory, which I would recommend running first to verify that everything is working correctly.
You can read more about it here: GitHub - duinoWitchery/hd44780: Extensible hd44780 LCD library
--- bill