i2c — ESP32 simulation

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by mashiyo272.

Components

Sketch code

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

// Change 0x27 to 0x3F if your LCD uses that address
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  Wire.begin(21, 22);   // SDA, SCL
  lcd.init();
  lcd.backlight();
}

void loop() {

  lcd.clear();
  lcd.setCursor(5, 0);
  lcd.print("Hello");
  delay(3000);

  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Good Afternoon");
  delay(3000);

  lcd.clear();
  lcd.setCursor(4, 0);
  lcd.print("Harish M");
  lcd.setCursor(4, 1);
  lcd.print("ECE Dept");
  delay(3000);

  lcd.clear();
  lcd.setCursor(3, 0);
  lcd.print("Mashiyo V");
  lcd.setCursor(4, 1);
  lcd.print("ECE Dept");
  delay(3000);

  lcd.clear();
  lcd.setCursor(4, 0);
  lcd.print("Naresh S");
  lcd.setCursor(4, 1);
  lcd.print("ECE Dept");
  delay(3000);
}

More projects by mashiyo272