Changed Pin 25 to "LED"
rodzic
2a52d769f8
commit
10f07acf74
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue