im trying to learn arduino and i dont understand what can be wrong with the sketch, the guy on the vid was using LiquidCrystal_I2C (Built-in) , i used LiquidCrystal (built-in).
The only line that comes when i try to check it:
no matching function for call to 'LiquidCrystal::LiquidCrystal(int, int, int)'
Here id the code:
/*
* Bas on Tech - I2C LCD
* This course is part of the courses on https://arduino-tutorials.net
*
* (c) Copyright 2018-2019 - Bas van Dijk / Bas on Tech
* This code and course is copyrighted. It is not allowed to use these courses commerically
* without explicit written approval
*
* YouTube: https://www.youtube.com/c/BasOnTech
* Facebook: https://www.facebook.com/BasOnTechChannel
* Instagram: https://www.instagram.com/BasOnTech
* Twitter: https://twitter.com/BasOnTech
*
* ---------------------------------------------------------------------------
*
* More info about I2C: https://en.wikipedia.org/wiki/I%C2%B2C
*
*
* PIN CONNECTIONS
*
* SDA is the serial data
* SCL is the serial clock
*
* GND --> GND white
* VCC --> 5V grey
* SDA --> A4 red
* SCL --> A5 blue
*
*
* I2C connections for each Arduino:
* Uno, Ethernet A4 (SDA), A5 (SCL)
* Mega2560 20 (SDA), 21 (SCL)
* Leonardo 2 (SDA), 3 (SCL)
* Due 20 (SDA), 21 (SCL) or SDA1, SCL1
*
*/
// Library for I2C / TWI device communication
#include <Wire.h>
// Library to control the LCD screen
#include <LiquidCrystal.h>
/*
* Set the correct chip for your LCD
* Use 0x27 when you have the PCF8574 chip made by NXP
* Use 0x3F when you have the PCF8574A chip made by Ti (Texas Instruments)
* The last two digits represent the LCD size
* e.g. 20x4 or 16x2
*
*/
LiquidCrystal lcd(0x27, 16, 2);
//LiquidCrystal_I2C lcd(0x3F, 16, 2);
void setup() {
lcd.init(); // initialise the LCD
lcd.backlight(); // turn backlight on
lcd.clear(); // clear the screen
lcd.setCursor(0, 0); // set the cursor to position 1, line 1
lcd.print("Hello YouTube!"); // write on the screen
}
Please let me know what can i change to make it work ,if there is a better library, any advice is useful.