ARDUINO UNO CODE TO DISPLAY HELLO WORLD !

 #include <Wire.h>

#include <LiquidCrystal_I2C.h>

// Set the LCD address (usually 0x27 or 0x3F)
// You can find the correct address using an I2C scanner sketch
#define I2C_ADDR 0x27

// Define LCD size (rows and columns)
#define LCD_ROWS 2
#define LCD_COLS 16

// Create an instance of the LCD class
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLS, LCD_ROWS);

void setup() {
  // Initialize the LCD
  lcd.init();

  // Turn on the backlight (optional)
  lcd.backlight();

  // Print "Hello, World!" on the LCD
  lcd.print("Hello, World!");
}

void loop() {
  // Your main code can go here
}

Comments

Popular posts from this blog

BASICS OF ARDUINO UNO - LED BLINKING

ESP 32