Different pin out selection in flow based on pi model?

Different pin out selection in flow based on pi model? I have two flows, one defined for 40 GPIO pin Pi devices and another flow for 26 GPIO pin Pi devices. I want to merge the flows to one for all Pi devices. But I don't see a obvious way to set the GPIO assignment via the given GPIO node options.

I need on 40 pin Pi, GPIO out for pins 36,38,40,GND 34.
I need on 26 pin Pi GPIO out for pins 19,21,23,GND 25.

I can't assign the same pins across both scenarios because pin assignment on the 40 pin Pi devices are already in use for other flows.

Is there a way to assign the GPIO pin assignment via flow logic rather than as static assignment via configuration edit node view for 'pi gpiod' out? I could just query the Pi device revision, then set the pin assignment accordingly, such is possible.

You can’t set them dynamically , but you can set them by environment variables so they can be set at deploy time.

Yeah, that appears to be the plan then. :slight_smile: