Raspberry Pi Pin Number description

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.