Merge pull request #14 from hoihu/fix-led-blink-example

pio/pio_blink.py: fix missing rp2 import.
pull/15/head
Alasdair Allan 2021-02-04 11:12:23 +00:00 zatwierdzone przez GitHub
commit 16c0439da6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,10 +1,10 @@
import time
from rp2 import PIO, asm_pio
import rp2
from machine import Pin
# Define the blink program. It has one GPIO to bind to on the set instruction, which is an output pin.
# Use lots of delays to make the blinking visible by eye.
@asm_pio(set_init=rp2.PIO.OUT_LOW)
@rp2.asm_pio(set_init=rp2.PIO.OUT_LOW)
def blink():
wrap_target()
set(pins, 1) [31]