We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ebb901 commit f4f14dbCopy full SHA for f4f14db
pio/pio_blink.py
@@ -1,10 +1,10 @@
1
import time
2
-from rp2 import PIO, asm_pio
+import rp2
3
from machine import Pin
4
5
# Define the blink program. It has one GPIO to bind to on the set instruction, which is an output pin.
6
# Use lots of delays to make the blinking visible by eye.
7
-@asm_pio(set_init=rp2.PIO.OUT_LOW)
+@rp2.asm_pio(set_init=rp2.PIO.OUT_LOW)
8
def blink():
9
wrap_target()
10
set(pins, 1) [31]
0 commit comments