Hi,
I'm following this tutorial https://www.instructables.com/id/How-to-Connect-I2C-Lcd-Display-to-Arduino-Uno/
Only difference is that I use another LCD with the following specs:
Specification:
Supply voltage: 5V
Interface: I2C
I2C address: 0x27 or 0x3F
Pin definition: GND, VCC, SDA, SCL
Contrast adjust: potentiometer
The module is a low-power consumption character LCD module with a built-in controller
The module can be easily interfaced with a MCU
Display format: 20 Characters x 4 lines
Fully assembled and tested serial LCD 20 x 4 module
White text, blue backlight
It is fantastic for Arduino based project
Size: 9.8 x 6 x 1.2mm
I ran an I2C scan I can confirm my screen is at 0x27
When I run this code
/* www.learningbuz.com */
/*Impport following Libraries*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
//I2C pins declaration
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
void setup()
{
lcd.begin(16,2);//Defining 16 columns and 2 rows of lcd display
lcd.backlight();//To Power ON the back light
//lcd.backlight();// To Power OFF the back light
}
void loop()
{
//Write your code
lcd.setCursor(0,0); //Defining positon to write from first row,first column .
lcd.print(" Tech Maker "); //You can write 16 Characters per line .
delay(1000);//Delay used to give a dynamic effect
lcd.setCursor(0,1); //Defining positon to write from second row,first column .
lcd.print("Like | Share");
delay(8000);
lcd.clear();//Clean the screen
lcd.setCursor(0,0);
lcd.print(" SUBSCRIBE ");
lcd.setCursor(0,1);
lcd.print(" TECH MAKER ");
delay(8000);
}
I get this error message
I2C_LCD_TUTORIAL:6: error: 'POSITIVE' was not declared in this scope
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
^
exit status 1
'POSITIVE' was not declared in this scope
I've searched the forum but I'm not sure about how to solve this issue, it looks like the library isn't recognized even if I have LiquidCristal I2C by Frank de Bradander v 1.1.2 installed
Thanks for your help