This is a modified WiringPi for OrangePi. We call it WiringOP. Test fo Orangepi pc
git clone https://github.com/lightwind002/WiringOP.git -b h5
cd WiringOP
chmod +x ./build
sudo ./build
orangepi@orangepi:~$ gpio readall
+-----+-----+----------+------+---+-Orange Pi+---+---+------+---------+-----+--+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 12 | 8 | SDA.0 | ALT5 | 0 | 3 || 4 | | | 5V | | |
| 11 | 9 | SCL.0 | ALT5 | 0 | 5 || 6 | | | 0v | | |
| 6 | 7 | PWM1 | ALT3 | 0 | 7 || 8 | 1 | OUT | PC5 | 15 | 69 |
| | | GND | | | 9 || 10 | 0 | OUT | PC6 | 16 | 70 |
| 1 | 0 | RxD2 | ALT5 | 0 | 11 || 12 | 0 | ALT3 | PD14 | 1 | 110 |
| 0 | 2 | TxD2 | ALT5 | 0 | 13 || 14 | | | GND | | |
| 3 | 3 | CTS2 | ALT5 | 0 | 15 || 16 | 0 | ALT3 | PC4 | 4 | 68 |
| | | 3.3v | | | 17 || 18 | 0 | ALT3 | PC7 | 5 | 71 |
| 15 | 12 | MOSI1 | ALT5 | 0 | 19 || 20 | | | GND | | |
| 16 | 13 | MISO1 | OUT | 1 | 21 || 22 | 0 | ALT5 | RTS2 | 6 | 2 |
| 14 | 14 | SCLK1 | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CS1 | 10 | 13 |
| | | GND | | | 25 || 26 | 0 | ALT3 | PA21 | 11 | 21 |
| 19 | 30 | SDA.1 | ALT4 | 0 | 27 || 28 | 0 | ALT4 | SCL.1 | 31 | 18 |
| 7 | 21 | PA7 | ALT3 | 0 | 29 || 30 | | | GND | | |
| 8 | 22 | PA8 | ALT3 | 0 | 31 || 32 | 0 | ALT5 | RTS1 | 26 | 200 |
| 9 | 23 | PA9 | ALT3 | 0 | 33 || 34 | | | GND | | |
| 10 | 24 | PA10 | ALT3 | 0 | 35 || 36 | 0 | ALT5 | CTS1 | 27 | 201 |
| 107 | 25 | PD11 | ALT3 | 0 | 37 || 38 | 0 | ALT5 | TxD1 | 28 | 198 |
| | | GND | | | 39 || 40 | 0 | ALT5 | RxD1 | 29 | 199 |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+----------+------+---+-Orange Pi+---+------+----------+-----+-----+
Thanks!