# GPIO numbering

Source: https://forum.modalai.com/topic/2367/gpio-numbering
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-07-03 11:10:37 UTC by Viswanadh Chegu
Replies: 1 · Views: 696

## Viswanadh Chegu · 2023-07-03 11:10:37 UTC

Hi,

I would like to access the gpio pin 12 using interposer M0076 TP5 at J8
![Screenshot from 2023-07-03 16-36-01.png](https://forum.modalai.com/assets/uploads/files/1688382380819-screenshot-from-2023-07-03-16-36-01.png) 
```
echo 12 > /sys/class/gpio/export 
```
Not works shows Invalid argument 

but 
```
echo 1073 > /sys/class/gpio/export
```
works
 
But in voxl2 the numbering is different starts at 1072 and ends at 1280
![Screenshot from 2023-07-03 16-37-28.png](https://forum.modalai.com/assets/uploads/files/1688382468858-screenshot-from-2023-07-03-16-37-28.png) 

gpiochip1100 has 180 in ngpio

how to get exact number for gpio pin 12 in relation to above.
can someone tell the mapping of gpio numbers.

## Reply by Viswanadh Chegu · 2023-07-06 05:35:04 UTC

Found the offset
its gpiochip1100 
so for gpio 12 

```
echo 1112 > /sys/class/gpio/export
```
will enable gpio 12
