- ESP32
- LCD16x32
- Potensiometer 50K
- jumper
mapping pin:
sketch :
#include <liquidcrystal.h> LiquidCrystal lcd(22,23,5,18,19,21); void setup() { lcd.begin(16, 2); lcd.clear(); lcd.print("Hello fixduino!"); // go to row 1 column 0, note that this is indexed at 0 lcd.setCursor(0,1); lcd.print ("LCD pakai ESP32"); } void loop(){}
Menggunakan Modul I2C
sketch:
#include <wire.h> #include <liquidcrystal_i2c.h> LiquidCrystal_I2C lcd(0x27, 2, 16); void setup() { lcd.begin(); lcd.clear(); lcd.print("Hello fixduino!"); // go to row 1 column 0, note that this is indexed at 0 lcd.setCursor(0,1); lcd.print ("LCD I2C by ESP32"); } void loop(){}
Share This :
0 comments