The Raspberry Pi has 40 GPIO that can be set programmatically (ALT0-ALT5)
Image above from CircuitBasics