Hello.
I am trying to manipulate a GPIO pin to reset a radio that communicates serially on the NanoPi Neo2's UART1. I am using the Ubuntu Core image from 6/30/2017, which according to the Wiki has RPi.GPIO_NP already installed, so the installation directions simply say you don't have to install it since it is already installed.
Well, this is a bit of an issue for me, because I have written my whole project in python 3, and after experiencing a radio lockup which requires resetting the radio to recover, I decided I needed a wire to the radio reset which I will pulse whenever a certain amount of time passes since the radio last communicated with the Neo2. After running:
find /usr | grep -i gpio
I'm able to see that the RPi.GPIO is installed in the python 2.7 directory. I would like to install it for python 3, but can't find where I can obtain it to install it. If I try to install regular RPi.GPIO (for a real RasPi) I get "This module can only be run on a Raspberry Pi!". If I try to force my project to run with python 2, it finds the correct module and doesn't throw this error, and gets well past it before failing due to python3/2 incompatibilities.
This was my first ever python program, I'd rather not have to rewrite it for python 2 if there is a way to get RPi.GPIO for the Neo2 installed for python 3.
Any help would be greatly appreciated.
I am trying to manipulate a GPIO pin to reset a radio that communicates serially on the NanoPi Neo2's UART1. I am using the Ubuntu Core image from 6/30/2017, which according to the Wiki has RPi.GPIO_NP already installed, so the installation directions simply say you don't have to install it since it is already installed.
Well, this is a bit of an issue for me, because I have written my whole project in python 3, and after experiencing a radio lockup which requires resetting the radio to recover, I decided I needed a wire to the radio reset which I will pulse whenever a certain amount of time passes since the radio last communicated with the Neo2. After running:
find /usr | grep -i gpio
I'm able to see that the RPi.GPIO is installed in the python 2.7 directory. I would like to install it for python 3, but can't find where I can obtain it to install it. If I try to install regular RPi.GPIO (for a real RasPi) I get "This module can only be run on a Raspberry Pi!". If I try to force my project to run with python 2, it finds the correct module and doesn't throw this error, and gets well past it before failing due to python3/2 incompatibilities.
This was my first ever python program, I'd rather not have to rewrite it for python 2 if there is a way to get RPi.GPIO for the Neo2 installed for python 3.
Any help would be greatly appreciated.