|
I tried to use GPIO on A64 (arm64 arch) OPi Win Plus.
I installed WiringPI: https://github.com/OrangePiLibra/WiringPi
When i try to change PIN mode with gpio util or try to chage files of /sys/class/gpio - there is no result.
I can change GPIO value on PIN, but not mode (in/out/...)
Why?
- ~$ sudo gpio readall
- ...
- | 39 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 0 | IN | CTS2 | 27 | 35 |
- | 101 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | IN | TxD2 | 28 | 32 |
- | | | 0v | | | 39 || 40 | 0 | IN | RxD2 | 29 | 33 |
- +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
- | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
- +-----+-----+----------+------+---+-Orange Pi Win/Win+ +---+------+----------+-----+-----+
- ~$ sudo gpio mode 25 out
- ~$ sudo gpio write 25 1
- ~$ sudo gpio readall
- +-----+-----+----------+------+---+-Orange Pi Win/Win+ +---+---+------+---------+-----+--+
- | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
- ...
- | 39 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 0 | IN | CTS2 | 27 | 35 |
- | 101 | 25 | GPIO.25 | IN | 1 | 37 || 38 | 0 | IN | TxD2 | 28 | 32 |
- | | | 0v | | | 39 || 40 | 0 | IN | RxD2 | 29 | 33 |
Copy code- | 101 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | IN | TxD2 | 28 | 32 |
- | | | 0v | | | 39 || 40 | 0 | IN | RxD2 | 29 | 33 |
- +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
- | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
- +-----+-----+----------+------+---+-Orange Pi Win/Win+ +---+------+----------+-----+-----+
- ~$ sudo echo 101 > /sys/class/gpio/export
- ~$ sudo echo out > /sys/class/gpio/gpio101/direction
- ~$ sudo echo 1 > /sys/class/gpio/gpio101/value
- ~$ sudo gpio readall
- | 101 | 25 | GPIO.25 | IN | 1 | 37 || 38 | 0 | IN | TxD2 | 28 | 32 |
- | | | 0v | | | 39 || 40 | 0 | IN | RxD2 | 29 | 33 |
Copy code
I need to change mode of some pins. Is it possible to change GPIO mode on WinPlus?
|
|