PIO: Use the same Pin for input and output. #17591
-
It may be that by PIO skill faded a little bit, but I'm fighting to use the same pin in a state machine for input using the in_(pins, 1) statement and output with out(pins, 1). Even setting the direction does not seem to work. in_() works, but no data is shifted out. Shifting data out at a different pin works. It using the same pin impossible, or do I just have a brain block? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Using the same pin would mean to dynamically change pin and pindir. |
Beta Was this translation helpful? Give feedback.
After talking I found a combination of settings that work. Both set_init and out_init have to set the respective Pin to OUT_xxxx mode,