Skip to content

Commit c873588

Browse files
author
Alasdair Allan
authored
Update pio_spi.py
Missing import, see comments in raspberrypi#14
1 parent 16c0439 commit c873588

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pio/pio_spi.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from rp2 import PIO, asm_pio
12
from machine import Pin
23

34
@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):
4546
for b in wdata:
4647
self._sm.put(b << 24)
4748
rdata.append(self._sm.get() & 0xff)
48-
return rdata
49+
return rdata

0 commit comments

Comments
 (0)