Lcd Ezhar — ESP32 simulation

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

Components

Sketch code

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

LiquidCrystal_I2C lcd(0x27, 16, 2);
const int ledPin = 4;

void setup() {
  pinMode(ledPin, OUTPUT);
  Wire.begin(21,22);
  lcd.init();
  lcd.backlight();

  lcd.setCursor(0, 0);
  lcd.print("Praktikum 1");
  lcd.setCursor(0, 1);
  lcd.print("ESP32 & LCD I2C");
  delay(2000);
  lcd.clear();
}


void loop() {
  digitalWrite(ledPin, HIGH);
  lcd.setCursor(0, 0);
  lcd.print("Status: LED ON");
  delay(1000);

  digitalWrite(ledPin, LOW);
  lcd.setCursor(0, 0);
  lcd.print("Status: LED OFF");
  delay(1000);
}

More projects by ventoauro9