#include <LCD_I2C.h>
LCD_I2C lcd(0x27, 16, 2); // Default address of most PCF8574 modules, change according
void setup()
{
lcd.begin(); // If you are using more I2C devices using the Wire library use lcd.begin(false)
// this stop the library(LCD_I2C) from calling Wire.begin()
lcd.backlight();
}
void loop()
{
//Autoscroll
// lcd.setCursor(5, 0);
// lcd.print(F("Autoscrolling"));
// lcd.setCursor(10, 1);
// lcd.autoscroll();
// for (int i = 0; i < 10; i++)
// {
// lcd.print(i);
// delay(200);
// }
// lcd.noAutoscroll();
// lcd.clear();
//Hellow World
// lcd.print(" Hello"); // You can make spaces using well... spaces
// lcd.setCursor(5, 1); // Or setting the cursor in the desired position.
// lcd.print("World!");
// delay(500);
// Scroll left and right
// lcd.setCursor(10, 0);
// lcd.print(F("To the left!"));
// for (int i = 0; i < 10; i++)
// {
// lcd.scrollDisplayLeft();
// delay(200);
// }
// lcd.clear();
//scroll to the right
lcd.setCursor(0, 0);
lcd.print(F("To the right!"));
for (int i = 0; i < 13; i++)
{
lcd.scrollDisplayRight();
delay(500);
}
//Cursor
// lcd.setCursor(0, 0);
// lcd.cursor();
// lcd.print(F("Cursor"));
// delay(3000);
// lcd.clear();
//Cursor blink
// lcd.setCursor(0, 0);
// lcd.blink();
// lcd.print(F("Cursor blink"));
// delay(3000);
// lcd.clear();
//Blink without cursor
// lcd.setCursor(0, 0);
// lcd.noCursor();
// lcd.print(F("Just blink"));
// delay(3000);
// lcd.noBlink();
// lcd.clear();
}