Power & Source of Big Ideas

Button on board

Moderators: chensy, FATechsupport

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.
I cannot find any documentation on what this button does. Friendly Elec, please update the manual, and let us know what this is for.
This key is connected to GPIOL3 & KEYADC according to the schematic released by FriendlyArm.
You can develop it according to your need.

regards.
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--+------+----------+-----+-----+
The button is accessible as a standard GPIO input on GPIO355. It can be accessed with the sysfs driver (/sys/class/gpio).
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.
Thanks it was very helpful

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 4 guests