Issue with lcd and Arduino Nano

I'm trying to use my LCD with my Nano. It works with the I2C module I bought using my i2c library I got but when I try to use the lcd with my nano (without i2c) using the LiquidCrystal library by Arduino it says

"Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

C:\Users\natha\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:35:10: fatal error: ../Wire/Wire.h: No such file or directory

Multiple libraries were found for "LiquidCrystal.h"

#include <../Wire/Wire.h>

Used: C:\Users\myname\Documents\Arduino\libraries\LiquidCrystal

      ^~~~~~~~~~~~~~~~

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal

compilation terminated.

exit status 1

Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
"
Help appreciated!

It looks like you have just to change the library from liquid_crystal_i2c to liquid_crystal.

But I wrote #incude <liquid_crystal.h> not the i2c one...

Looks like LiquidCrystal lybrary is calling Wire library but doesn´t find it.

Are you sure you have the Wire library correctly installed?

Your call to the library should be #include <Wire.h> (without any path)

Check-in library folder if there are more than one folder called liquid crystal and, please, upload your code :wink:

Sorry. I'll upload my code when I get home. But <liquid_crystal.h> is the only library I'm using

Here is my code:

#include <LiquidCrystal.h>

// include the library code:

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 2, en = 3, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}

By the way this isn't the text i'm using it for i just want to get it to work and then i'll edit it

Please post the complete error message you see when using this code.

@cattledog I did it's at the top

Used: C:\Users\myname\Documents\Arduino\libraries\LiquidCrystal
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal

You have some sort of library conflict with two libraries with the same name and the compiler is picking the wrong one. You should be using the library bundled with the ide, and not the one in the libraries file in your sketch folder.

Remove the LiquidCrystal library from the sketch folder or try and rename it.

OH WOW I thought LiquidCrystal in my libraries folder was the Arduino one. It turns out it wasn't!
Thank you so much and happy spoopy season!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.