#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define LCD_COLUMNS 16
#define LCD_LINES 2
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
char * messagePadded = " Shishas, Shooters, Bongs, Zippos, Pipes, Postcards, Grinders, Mugs, Ornaments, Vaporizers, Maple Products, Gifts and many more! We also sell that is available here such as Toy Vehicles! Stuffed Animals! T-Shirts! Gadgets! SOLO! Atmos! GPEN! MEDWAKH! Shot Glasses! Batteries! Film! Playing Cards! Diecast Toy Cars! Diecast Toy Airplanes! Diecast Toy Helicopters! All Diecast toy vehicles! And Many More! WOW! See at Google Maps: Maple Leaf Souvenirs And Cigars. See at Android Auto on your mobile phone or Mobile Tablet: Maple Leaf Souvenirs And Cigars. Follow us on Facebook: Maple Leaf Souvenirs And Cigars. Find your address on an Old Garmin GPS: Maple Leaf Souvenirs and Cigars. We are OPEN! Check out our new digs! Maple Leaf Souvenirs and Cigars - for all your stuff of the Smoking, Memorial and Miscellaneous needs!! ";
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Pls. Wait...");
lcd.setCursor(12,0);
lcd.blink();
delay(20000);
lcd.setCursor(0,0);
lcd.noBlink();
lcd.clear();
loadingScreen();
loadingScreen();
loadingScreen();
loadingScreen();
loadingScreen();
lcd.clear();
lcd.noBacklight();
delay(2000);
lcd.print("Maple Leaf Souv.");
lcd.backlight();
}
void loop()
{
for (int letter = 0; letter <= strlen(messagePadded) - 16; letter++) //From 0 to upto n-16 characters supply to below function
{
showLetters(0, letter);
}
}
void showLetters(int printStart, int startLetter)
{
lcd.setCursor(printStart, 1);
for (int letter = startLetter; letter <= startLetter + 15; letter++) // Print only 16 chars in Line #2 starting 'startLetter'
{
lcd.print(messagePadded[letter]);
}
lcd.print(" ");
delay(150);
}
void loadingScreen()
{
lcd.setCursor(0,0);
lcd.print(".");
delay(500);
lcd.print("..");
delay(500);
lcd.print("...");
delay(500);
}