-
-
DanClemmensen
-
- Posts: 5
- Joined: Fri Mar 29, 2019 6:44 pm
Wed Apr 10, 2019 11:01 pm
Followup:
The instructions on the wiki do not state this, but you shold follow the instructions for the Neo, not the M1, when you build. Then the generated code will read the file /sys/class/sunxi_info to determine the
board type. That's great, but the result from
gpio readall has the wrong physical pin numbers:
Code: Select all
pi@NanoPi-Duo:~/WiringNP/gpio$ sudo ./gpio readall
+-----+-----+----------+------+---+-NanoPi-Duo--+------+----------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
| | | MIC_N | | | 1 || 2 | | | EPhySPD | | |
| | | MIC_P | | | 3 || 4 | | | EPhyLinK | | |
| | | LineOutR | | | 5 || 6 | | | EPhyTXP | | |
| | | LineOutL | | | 7 || 8 | | | EPhyTXN | | |
| | | CVBS | | | 9 || 10 | | | EPhyRXP | | |
| 198 | 8 | GPIOG6 | ALT5 | 0 | 11 || 12 | | | EPhyRXN | | |
| 199 | 9 | GPIOG7 | ALT5 | 0 | 13 || 14 | | | USB-DP2 | | |
| 15 | 7 | GPIOA15 | ALT4 | 0 | 15 || 16 | | | USB-DM2 | | |
| 16 | 0 | GPIOA16 | ALT4 | 0 | 17 || 18 | | | USB-DP3 | | |
| 14 | 2 | GPIOA14 | ALT4 | 0 | 19 || 20 | | | USB-DM3 | | |
| 13 | 3 | GPIOA13 | ALT4 | 0 | 21 || 22 | 0 | OFF | GPIOG11 | 16 | 203 |
| 12 | 12 | GPIOA12 | ALT5 | 0 | 23 || 24 | 0 | IN | GPIOL11 | 18 | -1 |
| 11 | 13 | GPIOA11 | ALT5 | 0 | 25 || 26 | | | 0v | | |
| | | 0v | | | 27 || 28 | | | 3.3v | | |
| 4 | 14 | GPIOA4 | ALT5 | 0 | 29 || 30 | | | 5v | | |
| 5 | 15 | GPIOA5 | ALT5 | 0 | 31 || 32 | | | 5v | | |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+----------+------+---+-NanoPi-Duo--+------+----------+-----+-----+