#include<Arduino.h>
void setup() {
ledcSetup(0,5000,8);
ledcAttachPin(18,0);
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=0; i<256; i++){
ledcWrite(0,i);
Serial.println(i);
delay(5);
} // this speeds up the simulation
}