#define input1_pin 26
#define LED1_pin 15
int inputValue = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(input1_pin, INPUT);
pinMode(LED1_pin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
inputValue = analogRead(input1_pin);
//Potentio = 4095
Serial.println(inputValue/16);
analogWrite(LED1_pin, inputValue/16);
delay(10); // this speeds up the simulation
}