int led=23;
int freq = 5000;//5kHZ
int canal=0; // usamos el canal 0 de los 16 posibles (0 al 15)
int resol=8;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
//pinMode(led, OUTPUT);
ledcSetup(canal,freq,resol);
ledcAttachPin(led,canal);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
ledcWrite(canal,255)
}