void setup() {
pinMode(5,OUTPUT);
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("Hello, ESP32!");
}
void loop() {
for(int dc=0; dc<=255;dc++)
{
analogWrite(5,dc);
}
delay(100);
for(int dc=255;dc>=0;dc--){
analogWrite(5,dc);
}
delay(100);
}