diff --git a/pwm/pwm_fade.py b/pwm/pwm_fade.py index 7264eda..5a10554 100644 --- a/pwm/pwm_fade.py +++ b/pwm/pwm_fade.py @@ -5,7 +5,7 @@ from machine import Pin, PWM # Construct PWM object, with LED on Pin(25). -pwm = PWM(Pin(25)) +pwm = PWM(Pin("LED")) # Set the PWM frequency. pwm.freq(1000)