#include <Wire.h>
#include <LiquidCrystal_I2C.h>
int text[] = {77, 111, 110, 101, 121, 32, 115, 101, 99, 117, 114, 105, 116, 121};
LiquidCrystal_I2C LCD = LiquidCrystal_I2C(0x27, 16, 2);
// LCD экран подключается к шине I2C на плате esp32.
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
LCD.init();
LCD.backlight();
LCD.setCursor(0, 0);
LCD.print("Welcom ROBBANK");
LCD.setCursor(0, 1);
LCD.print("Calibrate System");
delay(1000);
LCD.clear();
LCD.setCursor(0, 0);
}
void loop() {
LCD.clear();
LCD.setCursor(0, 0);
LCD.print("code:");
LCD.setCursor(0, 1);
Text();
delay(2000);
}
void Text(){
LCD.setCursor(0, 1);
for (int i=0; i<14; i++){
LCD.setCursor(i, 1);
LCD.write(text[i]);
}
}