/********* By the Autonomous Systems Laboratory 2022-2023, for the Department of Informatics & Telecommunications Lesson "Internet of Things" Computer System Courses Flow of the 7th Semester *********/ // ------------------------------------------ // LCD ESP32C3 DEVKITC-02 // VCC 5V // GND DIGITAL GND // SDA PIN 8 SDA // SCL PIN 9 SCL //------------------------------------------- // - LiquidCrystal I2C Author: Frank de Brabander : https://www.arduino.cc/reference/en/libraries/liquidcrystal-i2c/ // Please support the original library authors! #include // set the LCD number of columns and rows int lcdColumns = 16; //Declare the number of columns int lcdRows = 2; //declare the number of rows // set LCD address, number of columns and rows // if you don't know your display address, run an I2C scanner sketch LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows); void setup(){ // initialize LCD lcd.init(); // turn on LCD backlight lcd.backlight(); delay(2000); //delay for 2 seconds for the LCD Display to load properly } void loop(){ // set cursor to first column, first row lcd.setCursor(0, 0); // print message lcd.print("IoT"); delay(1000); // clears the display to print new message lcd.clear(); // set cursor to first column, second row lcd.setCursor(0,1); lcd.print("LESSON 3"); //print a message to the LCD delay(1000); //delay for 1 second lcd.clear(); //clear the LCD Display to print a message }