Changed Pin 25 to "LED"

This commit is contained in:
Toby Roberts 2023-02-28 11:59:47 +00:00 committed by GitHub
parent c82971b6e0
commit 2a52d769f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import time, _thread, machine
def task(n, delay):
led = machine.Pin(25, machine.Pin.OUT)
led = machine.Pin("LED", machine.Pin.OUT)
for i in range(n):
led.high()
time.sleep(delay)