Get Raspberry Pi GPIO Pinout

Get Raspberry Pi GPIO Pinout

The Raspberry Pi has GPIO pins that can be used to connect various sensors to measure changes in physical properties such as temperature, capacitance, resistance, etc. This tutorial shows how to get Raspberry Pi GPIO pinout via command line.

The pinout is a command line tool that allows getting details of the GPIO pins. Tool is available in python-gpiozero package which installed by default on Raspberry Pi OS.

If for some reason, the python3-gpiozero package in not installed, install it using the following command:

sudo apt install -y python3-gpiozero

To get Raspberry Pi GPIO pinout, run pinout command without any arguments:


Output example:

Raspberry Pi GPIO Pinout printed with pinout command

Leave a Comment

Cancel reply

Your email address will not be published.