Currently, there are three ways to pin the Raspberry Pi:
1, based on the physical location of the PIN number;
2, C language Gpio library WIRINGPI the agreed numbering method;
3,python Language Gpio Library Bcm.gpio The numbering method of the conventions.
If we want to base on the WIRINGPI library with the C language to the Raspberry Pi Gpio operation, we will choose the WIRINGPI contract numbering method, can be seen, WIRINGPI in the GPIO0 corresponding to the physical location number of Pin11, The GPIO30 corresponds to a Pin27 that is numbered by physical location.
If we want to operate the Raspberry Pi Gpio based on the Bcm.gpio library in Python language, we will use the Bcm.gpio Convention numbering method, as can be seen, bcm.gpio in the GPIO0 corresponding to the physical location number of pin27,gpio16 corresponding to the physical location number of the PIN 36.
is a detailed demonstration of the physical number 11,12,13 three pins:
Raspberry Pi Pin Number description