UP Squared with Ubuntu RPi.GPIO not working
Hey everyone,
I have an UP Squared with Ubuntu 18.04.
I want to run python code that worked on a raspberry pi, but on the UP Squared i get the following error message.
I thought that the UP Squared used the same GPIO pins as the raspberry pi, how does it come that this package is not working on my UP Squared?
Anybody any ideas to fix this?
Thanks in advance.
Best Answers
-
Have you installed the Kernel for UP as described in our Wiki?
https://wiki.up-community.org/Ubuntu_18.04Are you running the application as root?
-
After a few tries we managed to read the pins.
The kernel version is important it needs to be 5.0.0.
And you have to run the code as root.
We did use MRAA instead of RPi.GPIO.
Thanks DCleri for the help!
Answers
-
Hey DCleri thanks for your answer.
Our kernel version is: 5.3.0, in the wiki it is 5.0.0.
When we try to change the kernel we get the following message:
So we are not fond of going through with this, because we are afraid to damage our system.
Are there other options or is this the only way?
Is it ok to remove the kernel? -
We took the risk to change the kernel, but it didn't make a difference.
Still the same error.