We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16c0439 commit c873588Copy full SHA for c873588
pio/pio_spi.py
@@ -1,3 +1,4 @@
1
+from rp2 import PIO, asm_pio
2
from machine import Pin
3
4
@rp2.asm_pio(out_shiftdir=0, autopull=True, pull_thresh=8, autopush=True, push_thresh=8, sideset_init=(rp2.PIO.OUT_LOW, rp2.PIO.OUT_HIGH), out_init=rp2.PIO.OUT_LOW)
@@ -45,4 +46,4 @@ def write_read_blocking(wdata):
45
46
for b in wdata:
47
self._sm.put(b << 24)
48
rdata.append(self._sm.get() & 0xff)
- return rdata
49
+ return rdata
0 commit comments