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

General • Re: PIO seemingly not outputting data properly...

$
0
0
I've looked, but I can't seem to find any reference to the function to which you refer.
I believe that arg001 was referring to the pio_sm_set_out_pins() function, documented here: https://www.raspberrypi.com/documentati ... 4b42010ffc. You should call it in addition to the call you already have to pio_sm_set_set_pins().
Ah yes - both pio_sm_set_out_pins() and sm_config_set_out_pins() are available for the two different styles of initialisation (and they both do the same job), so here where you are creating a configuration via a pio_sm_config you want sm_config_set_out_pins() to match the sm_config_set_set_pins() that you already have.

The documentation for the sm_config functions is hhere.

(and if you aren't already reading the RP2040 datasheet as well as the SDK documentation, I strongly suggest that you do so - the PIO section in the datasheet contains various info that's not in the SDK manual, though both cover the main topics).

Statistics: Posted by arg001 — Tue Jun 25, 2024 10:24 am



Viewing all articles
Browse latest Browse all 8093

Trending Articles