Skip to content

Maybe remove Twisted dependency? #8

@zpfvo

Description

@zpfvo

Hi,
this not a real issue rather than a question of design. I really like the interface you created for the gpio interface, but i think it is unnecessary to have the Twisted dependency.

Some people are are maybe using threads in a different way, for others its ok to wait for a pin change blocking.
I just forked and removed everything related to twisted and now call
events = Controller._poll_queue.poll(EPOLL_TIMEOUT)
Controller._poll_queue_event(events)
in my main loop which works nice. Everything is handled in a pin callback function.
At least it would be nice to have a public method to do a blocking read.

Either way,
nice module! Thanks for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions