Running Python code on NanoPI M3
Posted: Fri Jul 15, 2016 6:01 pm
Hello there!
I've got a brand new NanoPI M3 board with Debian OS. I thought its GPIO is supposed to be Raspberry Pi compatible, but when i try to use the RPi.GPIO Python module i get such an error:
Is there any chance that i could somehow use RPi.GPIO on my NanoPI, or is there any other Python library to work with M3's GPIO?
I've got a brand new NanoPI M3 board with Debian OS. I thought its GPIO is supposed to be Raspberry Pi compatible, but when i try to use the RPi.GPIO Python module i get such an error:
Code: Select all
[20:22][NanoPi3][~] # python -c "import RPi.GPIO;"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/RPi/GPIO/__init__.py", line 23, in <module>
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
Is there any chance that i could somehow use RPi.GPIO on my NanoPI, or is there any other Python library to work with M3's GPIO?