Hi, everyone. Just an old guy here trying to learn new thing.
I have an Ardunio Uno, a 20x4 lcd display and thought it would be good starting point to run one of the many 'hello' sketches to get my feet we.
So, I downloaded this bit of code:
//Written by Nick Koumaris
//info@educ8s.tv
//educ8s.tv
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address
void setup()
{
lcd.begin(20,4); // Initialize LCD
lcd.setCursor(3,0); // Set the cursor at the 4th column and 1st row
lcd.print("Hello YouTube!");
lcd.setCursor(8,1); // Set the cursor at the 9th column and 2nd row
lcd.print("");
lcd.setCursor(0,2); // Set the cursor at the 1st column and 3rd row
lcd.print("This is a demo text");
lcd.setCursor(8,3); // Set the cursor at the 9th column and 4th row
lcd.print("");
}
void loop()
{
}
sure seems simple enough doesn't it? Well it won't compile.
I get a ""POSISTIVE" was not declared in this scope.
I get the same result if I run the IDE on a WIN10 or WIN11 or Mac OS operating system.
Will someone please show me what is wrong with this script?
Error. The entire error is pasted below:
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Nano, ATmega328P"
sketch_jan22a:6:53: error: 'POSITIVE' was not declared in this scope
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address
^~~~~~~~
/Users/prosolar/Desktop/ardunio projects/sketch_jan22a/sketch_jan22a.ino: In function 'void setup()':
sketch_jan22a:9:17: error: no matching function for call to 'LiquidCrystal_I2C::begin(int, int)'
lcd.begin(20,4); // Initialize LCD
^
In file included from /Users/prosolar/Desktop/ardunio projects/sketch_jan22a/sketch_jan22a.ino:5:0:
/Users/prosolar/Documents/Arduino/libraries/Arduino-LiquidCrystal-I2C-library-master/LiquidCrystal_I2C.h:76:7: note: candidate: void LiquidCrystal_I2C::begin()
void begin();
^~~~~
/Users/prosolar/Documents/Arduino/libraries/Arduino-LiquidCrystal-I2C-library-master/LiquidCrystal_I2C.h:76:7: note: candidate expects 0 arguments, 2 provided
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: /Users/prosolar/Documents/Arduino/libraries/Arduino-LiquidCrystal-I2C-library-master
Not used: /Users/prosolar/Documents/Arduino/libraries/NewliquidCrystal
exit status 1
'POSITIVE' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

