Good catch !Regardless of RP2040/RP2350, there is only _one_ set of pin configurations, so you can only (usefully) call pio_sm_set_in_pins() once - if you call it in a loop like you are, each subsequent call overwrites the previous.
Also be aware that MOV at input just masks to 0 unwanted bits (IN_COUNT), and you need to set up OUT_COUNT properly, otherwise you can end up with those 0s written on unintended pins.
Statistics: Posted by gmx — Tue Oct 15, 2024 12:54 pm