DIYables
Published © GPL3+

ESP32 C3 Super Mini - LCD

Learn: how LCD I2C works, how to connect LCD I2C to ESP32, how to program ESP32 C3 Super Mini step by step.

BeginnerFull instructions provided32
ESP32 C3 Super Mini - LCD

Things used in this project

Story

Read more

Schematics

Wiring diagram

Wiring diagram from https://newbiely.com/tutorials/esp32-c3/esp32-c3-super-mini-lcd

Code

esp32-c3-super-mini-lcd.ino

Arduino
Full code from the newbiely.com tutorial
#include <DIYables_LCD_I2C.h>

DIYables_LCD_I2C lcd_i2c(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows

void setup() {
  lcd_i2c.init(); // Initialize the LCD I2C display
  lcd_i2c.backlight();
}

void loop() {
  lcd_i2c.clear();              // clear display
  lcd_i2c.setCursor(0, 0);      // move cursor to   (0, 0)
  lcd_i2c.print("Hello");       // print message at (0, 0)
  lcd_i2c.setCursor(2, 1);      // move cursor to   (2, 1)
  lcd_i2c.print("newbiely.com"); // print message at (2, 1)
  delay(2000);                  // display the above for two seconds

  lcd_i2c.clear();                  // clear display
  lcd_i2c.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd_i2c.print("DIYables");        // print message at (3, 0)
  lcd_i2c.setCursor(0, 1);          // move cursor to   (0, 1)
  lcd_i2c.print("www.diyables.io"); // print message at (0, 1)
  delay(2000);                      // display the above for two seconds
}

Credits

DIYables
9 projects • 99 followers
I would like to invite you to join and add your projects to DIYables platform https://www.hackster.io/diyables

Comments