#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define LCD_COLUMNS 20
#define LCD_LINES 4
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
char * messagePadded = " VOLKANO announces recall of the VX Gaming Sega Style Retro Console and the Relieve Series Game consoles due to fire, burn and explosion hazard. *** Hazard: Retroactive Series Bootleg game system: Motherboard overheating can be a cause, resulting a burn and fire hazard. Relieve Series: When charging the battery, it can heat up the cell, causing severe burns, or it can result a battery explosion hazard or battery can swell up. *** Action: Take away all recalled products and return them to any Giant Tiger store for an alternative replacement or become a GT VIP member. ";
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();
lcd.noBacklight();
delay(2000);
lcd.print(" Safety Recall!!");
lcd.backlight();
}
void loop()
{
for (int letter = 0; letter <= strlen(messagePadded) - 20; 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 + 19; letter++) // Print only 16 chars in Line #2 starting 'startLetter'
{
lcd.print(messagePadded[letter]);
}
lcd.print(" ");
delay(150);
}