2

I'm trying to start with the SainSmart 4x20 serial LCD, and copied the library to the Arduino library:

enter image description here

So LiquidCrystal_I2C.h is included. But when I try to compile an example sketch it says

Arduino: 1.7.0 (Windows 7), Board: "Arduino Uno"

HelloWorld_i2c.pde:2:31: fatal error: LiquidCrystal_I2C.h: No such file or directory

compilation terminated.

Error compiling.

Any ideas how to fix this?

  • There is no such thing as Arduino 1.7.0. At the time of writing, the latest Arduino IDE is 1.6.3 arduino.cc/en/Main/Software – Federico Fissore Apr 16 '15 at 14:30
  • It may be the 'Arduino.org' ripoff version. Test the same sketch in the Official Arduino IDE, the one linked by @FedericoFissore – LoganBlades Apr 16 '15 at 14:51
  • Please, accept your owm answer to close this question. – user31481 Nov 8 '17 at 6:37
4

I copied the SainSmart library to the IDE's library folder, not noticing that there was already a folder named "LiquidCrystal". Apparently the files added to the existing folder are being ignored.

Renaming the SainSmart library before adding it solves the problem.

0

There is not enough info to give a specific answer so I will give some troubleshooting tips:

  1. First make sure at the top of your code you have: #include <LiquidCrystal_I2C.h> - with angle brackets
  2. You may also need the Wire header file: #include <Wire.h> - with angle brackets
  3. Make sure you Include Serial
  4. Make sure there are no extra folders in the library for example there should be a folder called liquidcrystal inside the liquidcrystal folder
  5. If all fails copy the code from the header file make a new file in the IDE paste it in there and call it LiquidCrystal_I2C.h

Hope one of those solves your problem.

-4

I just found a solution by myself...

You just need to replace the library folder by a new one...

In the error message it will show you which library is used and which not...

Just replace the used library to a new one...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.