byte potPin = 26;
// bool ledState = false;
#include <LiquidCrystal.h>
LiquidCrystal lcd(18, 5, 17, 16, 4, 0);
void setup()
{
// put your setup code here, to run once:
lcd.begin(16, 2);
Serial.begin(115200);
Serial.println("Hello, ESP32!");
lcd.setCursor(3,0);
lcd.print("analog data");
pinMode(potPin, INPUT);
}
void loop() {
// put your main code herae, to run repeatedly:
int analogdata = analogRead(potPin);
Serial.print("analog data: ");
Serial.println(analogdata);
delay(500); // this speeds up the simulation
}