Comments (3)
Well,
I had some random: IOError [Errno 16] Device or resource busy
But IOError: [Errno 1] Operation not permitted, had never happend to me, specially on sudo.
I guess our /sys/class/gpio implementation looks quite weak and unstable.
Perhaps it is time to move to RPi.GPIO, or give the good-old C a shoot.
from pingo-py.
I still think we should insist with sysfs a little more. I was not very
focused yesterday, and even if RPi.GPIO is better (it probably is), sysfs
is a standard across many boards and we should make it work because
sometimes compiling a C extension in one of these boards is going to be
difficult. We just need some time to code it carefully. For example, it
makes not sense to export all pins if the app will only use a few. And then
we must keep track of which were exported so that only those are
unexported. And we need to improve our tests. Do you know py.test? I want
to start using that. doctest is good to demo/teach the straightforward
cases, for anything else unittest is better and py.test even more.
On Sun, Apr 6, 2014 at 2:05 AM, Lucas Vido [email protected] wrote:
Well,
I had some random: IOError [Errno 16] Device or resource busy
But IOError: [Errno 1] Operation not permitted, had never happend to me,
specially on sudo.I guess our /sys/class/gpio implementation looks quite weak and unstable.
Perhaps it is time to move to RPi.GPIO, or give the good-old C a shoot.—
Reply to this email directly or view it on GitHubhttps://github.com/garoa/pingo/issues/5#issuecomment-39658698
.
Luciano Ramalho
Twitter: @ramalhoorg
Professor em: http://python.pro.br
Twitter: @pythonprobr
from pingo-py.
For now we have decided to use RPi.GPIO on the Raspberry Pi, instead of sysfs
from pingo-py.
Related Issues (20)
- Support WRTnode
- raise ArgumentOutOfRange() missing apropriated value
- The GPIOs of Galileo2 only have location, they not have gpio_id HOT 1
- PWM on broken on Arduino HOT 1
- test_jumpwire fails on my Raspberry Pi 2 model B HOT 3
- New to pingo, can't get it working ! HOT 2
- Create a Debian package and submit to mentors.debian.net HOT 2
- Version on Pypi differs to tag version in github HOT 1
- Automagically create mocks (fakes) when the app is running outside a board HOT 5
- Switch / Push button : short pressed / long pressed events
- Pingo, MQTT and IoT
- Python 3 support HOT 2
- board = pingo.detect.get_board() or board = pingo.detect.MyBoard() ? HOT 1
- time to sleep should be configurable
- Switch / led parts : stop blinking led should fallback to previous led state (before blinking)
- Using a signal / slot pattern for parts ?
- Parts Swich (or PushButton?) without polling task HOT 6
- Pingo and RPi-Distro/python-gpiozero HOT 4
- Failed to detect HOT 2
- Is there any preview for getting Pingo in Python 3.5 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pingo-py.