radxa / pyrock Goto Github PK
View Code? Open in Web Editor NEWPython GPIO module for rockchip platform
Python GPIO module for rockchip platform
running setup on a rock 3a gives following error
/root/pyrock/pyRock/setup.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.core import setup
running install
running build
running build_py
running build_ext
No processor detected
Warning! Detected and target processor mismatch.
Do you want to continue [Y/n]? n
Abort.
Is this expected? Is there a working python gpio library for rock 3a
Good afternoon I built the module in python3 and there were no errors when I built it. But when trying to initialize the pins it comes out this
Traceback (most recent call last):
File "/home/stand/tet.py", line 10, in
gpio.init()
PermissionError: [Errno 1] Operation not permitted
Followed instructions:
sudo apt-get install gcc python-dev
python setup.py install
rm -rf /usr/local/lib/python2.7/dist-packages/pyRock*
then tried both python and python2:
rock@localhost:~/playGrounds$ python
Python 2.7.15+ (default, Nov 27 2018, 23:36:35)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from pyRock.gpio import gpio
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named pyRock.gpio
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.