Giter Site home page Giter Site logo

Comments (3)

Vido avatar Vido commented on August 20, 2024

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.

ramalho avatar ramalho commented on August 20, 2024

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.

ramalho avatar ramalho commented on August 20, 2024

For now we have decided to use RPi.GPIO on the Raspberry Pi, instead of sysfs

from pingo-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.