There are two 5V pins and two 3.3V pins on the board, as well as some non-configurable ground pins (0V). The remaining pins are all general 3.3V pins, which means that the output is set to 3.3V and the input can be connected to 3.3V.
GPIO pins designated as output pins can be set to high (3.3V) or low (0V).
GPIO pins designated as input pins can be read as high (3.3V) or low (0V). This can be more easily achieved by using internal pull-up or pull-down resistors. Pins GPIO2 and GPIO3 have fixed pull-up resistors, but for other pins this is configurable in software.
Besides simple inputs and outputs, GPIO pins can be used for various alternative functions, some functions are available on all pins, others are available on specific pins.
We can get a reference to the pinouts on the Raspberry Pi by opening a terminal window and running the command:
xxxxxxxxxx
pinout
This tool is provided by the GPIO Zero Python library, which is installed by default in the Raspberry Pi OS.
For more details on the advanced functionality of the GPIO pins, see gadgetoid's interactive pinout diagram.
Note: