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
#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);
}
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.