Occupancy GPIO for Raspberry Pi (Raspberry Pi GPIO assignment)
Description of the individual GPIO pins
Of the total of 26 or 40 pins (depending on the models) of the GPIO header, 17 or 26 pins can be programmed as either input or output, allowing them to be used for a variety of enhancements and electronic and digital circuits. The remaining pins are for power and other purposes.