Skip to content

SPI readinto() 'write' parameter #10520

Discussion options

You must be logged in to vote

My apologies: wiring error! Brief explanation:
The communications with the PIC is half duplex and on the side of the PIC I use one Pin (PGD in the picture below) for input and output. Therefore I use the following wiring 'trick':

But even after check and recheck I overlooked a wrong connection. It was pure coincidence that it worked by specifying readinto(buf3, 0xFF). After fixing the wiring a readinto(buf3) is OK. SPI of the RP2 works like with PyBoard and ESP32.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@robhamerling
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jimmo
Comment options

Answer selected by robhamerling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants