Patryk27 / omega2-gpio

A tiny library for managing Omega 2 GPIOs via /dev/mem
GNU General Public License v3.0
7 stars 5 forks source link

Confused about PIN 0 #4

Closed nsmith1024 closed 2 years ago

nsmith1024 commented 2 years ago

In your led-blink.cpp example you mentioned LED 0

const uint8_t LED_PIN = 0;

What does that mean exactly? which pin is that? is there a pin 0 on omega2+? Can you explain what this means? Thanks

Patryk27 commented 2 years ago

Hi,

As far as I remember, this corresponds to the same pin numbering that's used by gpioctl, which is the same as on the pinout diagram:

image

(https://docs.onion.io/omega2-docs/using-gpios.html)

🙂