// ********************
// Code for lerarning howe to read a api
// incomplete without learning sessions
// ********************
#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);
String outputString = "Hello!";
int i = 0;
void setup() {
Serial.begin(115200);
lcd.init();
lcd.backlight();
}
void loop() {
delay(10); // this speeds up the simulation for Wokwi only
i++;
lcd.rightToLeft();
lcd.setCursor (15,1);
lcd.print (outputString);
Serial.println(outputString);
lcd.leftToRight();
lcd.home();
lcd.print("LCD Display " + String(i));
delay(2000);
}