pio/pio_blink.py: fix missing rp2 import.

pull/14/head
Martin Fischer 2021-02-04 08:25:31 +01:00
rodzic 1ebb901045
commit f4f14dbadc
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]