// esp32Lcd.ino - "Hello" on a 16x2 character LCD, wired in 4-bit mode.
#include <LiquidCrystal.h>
// LiquidCrystal(rs, enable, d4, d5, d6, d7)
//
// Plain GPIO numbers. The ESP32 has no D1/D2/D4... labels - those are
// NodeMCU/ESP8266 silkscreen names, and pasting them here will not compile.
const int RS = 13, EN = 14, D4 = 27, D5 = 26, D6 = 25, D7 = 33;
LiquidCrystal lcd(RS, EN, D4, D5, D6, D7);
void setup() {
lcd.begin(16, 2); // 16 columns, 2 rows
lcd.clear();
lcd.setCursor(0, 0); // column 0, row 0
lcd.print("Hello!");
lcd.setCursor(0, 1); // row 1 is the SECOND row - rows count from 0
lcd.print("Embed Club");
}
void loop() {
// Nothing here. The text is already on the screen and the LCD holds it
// without being refreshed.
}