With a little search, you would have found that : http://linux-sunxi.org/GPIO   In summary, all SoC from AllWinner use the same formula : (position of letter in alphabet - 1) * 32 + pin number For OpiPC2 specific, look at the schematic : http://linux-sunxi.org/File:ORANGE_PI-PC2-V1_2_schematic.pdf   For Python library, use https://github.com/duxingkei33/orangepi_PC_gpio_pyH3 But for any 64 bits, you need to fix a small issue : change all references to SUNXI_P