Skip to content

Commit 16c0439

Browse files
author
Alasdair Allan
authored
Merge pull request #14 from hoihu/fix-led-blink-example
pio/pio_blink.py: fix missing rp2 import.
2 parents 1ebb901 + f4f14db commit 16c0439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pio/pio_blink.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import time
2-
from rp2 import PIO, asm_pio
2+
import rp2
33
from machine import Pin
44

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

0 commit comments

Comments
 (0)