from machine import Pin, PWM
from utime import sleep
print("Hello, ESP32!")
led = PWM(Pin(15), freq=1000)
while True:
for i in range(1024):
led.duty(i)
sleep(0.001)
for j in range(1023, 0, -1):
led.duty(j)
sleep(0.001)