Hello Sheldon,

SHIFTIN and SHIFTOUT take care of setting the data directions on their own; PBP takes care of it. I checked some code where I have used these commands and (for no particular reason) initialized both the data and clock pins as outputs.

Best Regards,
Paul