Professional Documents
Culture Documents
CODE:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address (You can find this using I2C scanner)
#define LCD_COLUMNS 16
#define LCD_ROWS 2
lcd.begin();
lcd.setCursor(0, 0);
lcd.print("Your Name");
lcd.setCursor(0, 1);
lcd.print("Your RollNo");
void loop() {
void setup() {
lcd.begin();
lcd.setCursor(0, 0);
lcd.print(name);
lcd.setCursor(0, 1);
lcd.print(rollNo);
}
void loop() {
// Scroll the text to the left
for (int i = 0; i < (strlen(name) + LCD_COLUMNS); i++) {
lcd.scrollDisplayLeft();
delay(300);
}