ESP32 Starter Kit
3. Wiring Diagram
4. Test Code
Add libraries to Arduino IDE first.
/*
keyestudio ESP32 Inventor Learning Kit
Project 11 LCD
http://www.keyestudio.com
*/
#include
<Wire.h>
#include
<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
line display
void
setup()
{
lcd.init();
// initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(2,0);
lcd.print("Hello,world!");
lcd.setCursor(2,1);
82
// set the LCD address to 0x27 for a 16 chars and
//Turn on the LCD backlight
//Set the display position
//LCD displays "Hello, world!"
(continues on next page)
Chapter 8. Arduino Tutorial
2␣
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers