From 10f07acf744f1f516c06a75dc9c13be94c539edb Mon Sep 17 00:00:00 2001 From: Toby Roberts <29973222+tobybroberts@users.noreply.github.com> Date: Tue, 28 Feb 2023 12:48:28 +0000 Subject: [PATCH] Changed Pin 25 to "LED" --- pwm/pwm_fade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)