NanoPI Neo Air can`t acces to any GPIO pins.
Posted: Tue Sep 28, 2021 11:38 am
Hi everybody, i try to give my GPIO pin meaning 1 for start to interact with my device. But i can`t doing nothin. I hope my device will take power from pg11 when i set this gpio mean to 1.
gpio readall
I think my pin Physical = 11, wPi = 0. When i use gpio -g mode 0 out, that doest give result and mode doesnt change.
OK i try install RPi.GPIO_NP from https://github.com/friendlyarm/RPi.GPIO_NP
Please somebody help me, that a tiny problem but i can`t do this for 4 days.
gpio readall
Code: Select all
+-----+-----+---------+------+---+-Model A-+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 2 | 8 | SDA.1 | IN | 0 | 3 || 4 | | | 5v | | |
| 3 | 9 | SCL.1 | IN | 0 | 5 || 6 | | | 0v | | |
| 4 | 7 | GPIO. 7 | IN | 0 | 7 || 8 | 0 | IN | TxD | 15 | 14 |
| | | 0v | | | 9 || 10 | 0 | IN | RxD | 16 | 15 |
| 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |
| 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | |
| 22 | 3 | GPIO. 3 | IN | 0 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 |
| | | 3.3v | | | 17 || 18 | 0 | IN | GPIO. 5 | 5 | 24 |
| 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | | |
| 9 | 13 | MISO | IN | 0 | 21 || 22 | 0 | IN | GPIO. 6 | 6 | 25 |
| 11 | 14 | SCLK | IN | 0 | 23 || 24 | 0 | IN | CE0 | 10 | 8 |
| | | 0v | | | 25 || 26 | 0 | IN | CE1 | 11 | 7 |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+-Model A-+---+------+---------+-----+-----+
I think my pin Physical = 11, wPi = 0. When i use gpio -g mode 0 out, that doest give result and mode doesnt change.
OK i try install RPi.GPIO_NP from https://github.com/friendlyarm/RPi.GPIO_NP
Code: Select all
root@PC_22:~# python3 --version
Python 3.5.3
root@PC_22:~/RPi.GPIO_NP# python3 setup.py install
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
Writing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
root@PC_22:~/RPi.GPIO_NP# sudo python3 setup.py install
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
Writing /usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.5.8.egg-info
root@PC_22:~/RPi.GPIO_NP# python3
Python 3.5.3 (default, Apr 5 2021, 09:00:41)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> #!/usr/bin/env python
... import RPi.GPIO as GPIO
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
ImportError: No module named 'RPi.GPIO'
>>>
Please somebody help me, that a tiny problem but i can`t do this for 4 days.
