Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Interfacing (DSI, CSI, I2C, etc.) • Re: RPI5 PIO. Two calls of pio_sm_set_consecutive_pindirs.

$
0
0
Consider this an unresearched early answer, but do you need to set the clk pin as an output, given that you are already marking it as a sideset pin?

Things to try (separately, to observe the effect):
1. Comment out the set_out_pins for the clk.
2. Swap the order of the two set_out_pins.

My guess, based on my recollection of how PIO works, is that the second set_out_pins will replace the first - you are telling PIO where to put its output, which is different from making pins outputs.

Statistics: Posted by PhilE — Sat Dec 13, 2025 1:05 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles