I'm trying to follow along with this OS building tutorial.

I'm trying to understand what the LED_ values in rpi-gpio.h mean and how they are all used. Where in the documentation are these values listed? I tried looking at the PDFs but I just don't know where to find them.

What are the values and how are they used? Where are they from?

  • 5
    Please don't expect us to search for the question. Add the relevant bit(s) of rpi-gpio.h to your question.
    – joan
    May 27, 2017 at 3:40

1 Answer 1


Basically, those #define statements are assigning human-readable names to the GPIO pins, as documented for the Pi.

See the official documentation, scroll to page 90.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.