please choosego to mobile | Continue to access the PC version
View: 5378|Reply: 1

Problem GPIO on Orange PI 3G-IOT A

[Copy link]

1

threads

1

posts

11

credits

Novice

Rank: 1

credits
11
Published in 2019-5-6 03:46:45 | Show all floors |Read mode
Hello,
The GPIO pin does not work when I execute the command:
# echo "-wdir 141 1"> / sys / devices / virtual / misc / mtgpio / pin
# echo "-wout 141 1"> / sys / devices / virtual / misc / mtgpio / pin
theses commands are executed successfully without error.

The result of status change
# cat / sys / devices / virtual / misc / mtgpio / pin | grep 141
but the pine does not come out of 3.3V voltage. My test LED does not light up.

I tested all GPIO pins unsuccessfully.

Can you help me please?

Thank you.


0

threads

3

posts

42

credits

Novice

Rank: 1

credits
42
Published in 2021-12-4 22:24:44 | Show all floors
This should work in console

su
echo "141" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio141/direction
echo 1 > /sys/class/gpio/gpio141/value

then this:
echo "141" > /sys/class/gpio/unexport

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list