#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // Set LCD address
int numbers[] = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
int numIndex = 0;
const int totalNumbers = sizeof(numbers) / sizeof(numbers[0]);
void setup() {
lcd.init();
lcd.backlight();
}
void loop() {
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Number:");
lcd.setCursor(0, 1);
lcd.print(numbers[numIndex]); // Display current number
numIndex = (numIndex + 1) % totalNumbers; // Loop through the array
delay(2000); // Wait for 2 seconds
}