This is a GPIO access library for NanoPI. It is based on the WiringOP for Orange PI which is based on original WiringPi for Raspberry Pi.
GNU Lesser General Public License v3.0
25
stars
106
forks
source link
NanoPi Duo gpio readall showing -1 for IR-RX #14
Open
blackenstock opened 4 years ago
I've forked and friendlyarms fork of this repo. when running gpio readall I get the 'bold' output. when changing the pin to output and high and low the gpio readall doesn't change (neither direction nor pin nor level) "24 | 0 | IN | GPIOL11 | 18 | -1 |"
+-----+-----+----------+------+---+-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 | OFF | 0 | 11 || 12 | | | EPhyRXN | | | | 199 | 9 | GPIOG7 | OFF | 0 | 13 || 14 | | | USB-DP2 | | | | 15 | 7 | GPIOA15 | OFF | 0 | 15 || 16 | | | USB-DM2 | | | | 16 | 0 | GPIOA16 | OFF | 0 | 17 || 18 | | | USB-DP3 | | | | 14 | 2 | GPIOA14 | OFF | 0 | 19 || 20 | | | USB-DM3 | | | | 13 | 3 | GPIOA13 | OFF | 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--+------+----------+-----+-----+