BBAI64: GPIO numbers

Hey @silver2row, for exact GPIO numbers checkout the documentation below,

https://docs.beagleboard.io/latest/boards/beaglebone/ai-64/ch07.html

It also contains a little guide section to control the GPIO pins, pasting it below for reference but you should read it on docs and try it out for some pins to understand better.

# to set the GPIO pin state to HIGH
debian@BeagleBone:~$ gpioset X Y=1

# to set the GPIO pin state to LOW
debian@BeagleBone:~$ gpioset X Y=0

For Example:

+---------+----------+
| Pin     | P8.03    |
+=========+==========+
| GPIO    | 1 20     |
+---------+----------+

Use the commands below for controlling this pin (P8.03) where X = 1 and Y = 20

# to set the GPIO pin state to HIGH
debian@BeagleBone:~$ gpioset 1 20=1

# to set the GPIO pin state to LOW
debian@BeagleBone:~$ gpioset 1 20=0

If you want a simple enable disable function via sysfs I would recommend you to go with BONE_LED bus and use the overlay below.

If you are new to overlays on AI-64 you can checkout the link below,

Let me know if that resolves your queries.

1 Like