Changed Pin 25 to "LED"

pull/60/head
Toby Roberts 2023-02-28 11:59:47 +00:00 zatwierdzone przez GitHub
rodzic c82971b6e0
commit 2a52d769f8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)