NanoPi S2 GPIO Mapping to access using SysFS

This post is all about GPIO pin numbering to use with SysFS. In this post, I have mapped all the pins of Nano Pi S2 so that the GPIO can be easily accessed using SysFS. The pins are mapped according to the following formula, sysfs pin number- X(GPIOX)+Y(GPIOXY) Where, X value depends on the GPIO group and is like below GPIOA: 0 GPIOE: 128 GPIOALV: 160 GPIOB: 32 GPIOC: 64 GPIOD: 96 and Y is the pin number next to GPIO group name

Read More