It often doesn’t make economic sense to choose a larger microcontroller just to get extra pins so the answer is to use a port expander chip. [Raendra] posted a guide for using one of these chips ...
Mechanical core shafts and mandrels are mechanically-expanding products that feature a continuous lug of leaf. They expand concentrically and differ in terms of both design and mounting style.