void setup() {
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(2,OUTPUT);
pinMode(33, OUTPUT);
pinMode(33, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
digitalWrite(33, HIGH);
delay(1000);
digitalWrite(2, LOW);
digitalWrite(33, LOW);
delay(1000);
int vol = analogRead(13);
Serial.println(vol);
vol = map ( vol,0,4095,0,255);
analogWrite(34,vol);
}