Page 1 of 1
Button on board
Posted: Fri Sep 15, 2017 6:09 am
by NanoPiDuo
What is the button on the Duo board used for?
How can I access it to run a command?
I tried to see it through EVTEST and TRIGGERHAPPY (THD DUMP) - but can't see it.
Thanks.
N.
Re: Button on board
Posted: Tue Sep 26, 2017 11:44 pm
by mikemoy
I cannot find any documentation on what this button does. Friendly Elec, please update the manual, and let us know what this is for.
Re: Button on board
Posted: Wed Sep 27, 2017 6:50 am
by meisam
This key is connected to GPIOL3 & KEYADC according to the schematic released by FriendlyArm.
You can develop it according to your need.
regards.
Re: Button on board
Posted: Wed Sep 27, 2017 12:14 pm
by guidol
GPIOL3 doesnt seems to be readable via WiringNP

Code: Select all
root@NanoPiDuo:/home/guido# 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 | ALT5 | 0 | 15 || 16 | | | USB-DM2 | | |
| 16 | 0 | GPIOA16 | ALT5 | 0 | 17 || 18 | | | USB-DP3 | | |
| 14 | 2 | GPIOA14 | ALT5 | 0 | 19 || 20 | | | USB-DM3 | | |
| 13 | 3 | GPIOA13 | IN | 0 | 21 || 22 | 1 | OUT | GPIOG11 | 16 | 203 |
| 12 | 12 | GPIOA12 | ALT5 | 0 | 23 || 24 | | | IR-RX | | |
| 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--+------+----------+-----+-----+
Re: Button on board
Posted: Fri Oct 06, 2017 9:06 pm
by bitbank
The button is accessible as a standard GPIO input on GPIO355. It can be accessed with the sysfs driver (/sys/class/gpio).
Re: Button on board
Posted: Tue Oct 10, 2017 12:57 am
by NanoPiDuo
Thanks for the info.
I do not know much about python and I would like to use the button in my existing python program
I address buttons using the port or connector line - like this:
button4 = port.PA14
button1 = connector.gpio1p23
Can someone please tell me how to use GPIO355 in my program?
Is there a port or connector number?
Thanks in advance.
Re: Button on board
Posted: Tue Oct 17, 2017 11:13 pm
by rirbe
Thanks it was very helpful