GPIO
GPIO: General purpose input/output. We will introduce the specific future of the pins on the Raspberry Pi and
what you can do with them. You can use them for all sorts of purposes. Most of them can be used as either
inputs or outputs, depending on your program.
When programming the GPIO pins there are 3 different ways to refer to them: GPIO numbering, physical
numbering, WiringPi GPIO Numbering.
BCM GPIO Numbering
Raspberry Pi CPU use BCM2835/BCM2836/BCM2837of Broadcom. GPIO pin number is set by chip
manufacturer. These are the GPIO pins as that computer recognizes. The numbers don't make any sense to
humans. They jump all over the place, so there is no easy way to remember them. You will need a printed
reference or a reference board that fits over the pins.
Each pin is defined as below:
For more details about pin definition of GPIO, please refer to http://pinout.xyz/