Quantcast
Viewing all articles
Browse latest Browse all 4899

SDK • Re: Problem with OUT pins PIO command

I think he is asking if
sm_config_set_out_pins
and
sm_config_set_set_pins (unfortunate name)
can overlap on the same SM.

Usually they do for simple applications, just look at WS2812B example:

Code:

79 sm_config_set_out_pins(&c, pin_base, pin_count);80 sm_config_set_set_pins(&c, pin_base, pin_count);
sm_config_set_set_pins
static void sm_config_set_set_pins (pio_sm_config * c, uint set_base, uint set_count) [inline], [static]
Set the 'set' pins in a state machine configuration
'set' pins can overlap with the 'in', 'out' and 'sideset' pins
Parameters
c Pointer to the configuration structure to modify
set_base 0-31 First pin to set as
set_count 0-5 Number of pins to set.
P.S. BTW ... have you set up the GPIO pin function to be PIO for each respective pins ?

Statistics: Posted by gmx — Sun Oct 13, 2024 11:01 am



Viewing all articles
Browse latest Browse all 4899

Trending Articles