#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Change the address to 0x3F if 0x27 doesn't work
LiquidCrystal_I2C lcd(0x27, 16, 2); // Or use 0x3F if 0x27 doesn't work
void setup() {
Serial.begin(115200);
Serial.println("Testing LCD");
lcd.init(); // Initialize the LCD
lcd.backlight(); // Turn on the backlight
lcd.setCursor(0, 0); // Set cursor to the top left
lcd.print("Hello, Wokwi!"); // Display text
Serial.println("LCD initialized");
}
void loop() {
// Nothing to do here
}