From the course: Raspberry Pi: GPIO

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Numbering schemes: Board versus BCM

Numbering schemes: Board versus BCM

From the course: Raspberry Pi: GPIO

Start my 1-month free trial

Numbering schemes: Board versus BCM

- [Instructor] The GPIO numbering schemes are possibly the most confusing part of the raspberry pi GPIO. There are three ways to describe pins, WiringPi, BCM, and BOARD. I'll be referencing the handout labeled 02_02_GPIOpins. Here's an example. The top right pin of the GPIO can be described as BCM pin 21, GPIO 21, or pin 40, or WiringPi pin 29. So let's spend a bit of time understanding these different numbering schemes. First, let's talk about WiringPi. This development library has been around for several years, but has recently been deprecated by its author. You will continue to see code written using this library, but moving forward, you should use a different library. It's more likely you'll encounter the BCM numbering scheme. BCM is available for most languages, including Python and Scratch. BCM is the numbering scheme used when you see GPIO. For example, GPIO 17 is found on the sixth pin from the lower left corner…

Contents