davecheney / gpio

GPIO for Go
BSD 2-Clause "Simplified" License
227 stars 52 forks source link

Use channels to watch for events #23

Open dakerfp opened 8 years ago

dakerfp commented 8 years ago

BeginWatch(Edge, IRQEvent) could have a more Go like API to handle events like signal.Notify https://golang.org/pkg/os/signal/#Notify

davecheney commented 8 years ago

I'm sorry but I haven't worked on this package in years. I'm unlikely to implement this feature.

I recommend you look at the work happening in the x/exp/gpio repo.

On Tue, Jun 7, 2016 at 2:53 PM, Daker Fernandes Pinheiro < notifications@github.com> wrote:

BeginWatch(Edge, IRQEvent) could have a more Go like API to handle events like signal.Notify https://golang.org/pkg/os/signal/#Notify

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davecheney/gpio/issues/23, or mute the thread https://github.com/notifications/unsubscribe/AAAcA97YLb-lEuLu6xOqpfjB3V_dsNTEks5qJPlWgaJpZM4Ivjlq .

PaulB2Code commented 8 years ago

Dear Dave

Do you know where I can find any more informations to implement x/exp/gpio on a raspberry.

I tried to found but I did not find how to Initiate the driver to Open the communication with the Pi but I did not arrive to do it..

Thank you for your time.

Best Paul

davecheney commented 8 years ago

I'm pretty sure that package supports the rpi's Gpio ports already, it was one of the first platforms they got working.

On 17 Aug 2016, at 19:53, paul B. notifications@github.com wrote:

Dear Dave

Do you know where I can find any more informations to implement x/exp/gpio on a raspberry.

I tried to found but I did not find how to Initiate the driver to Open the communication with the Pi but I did not arrive to do it..

Thank you for your time.

Best Paul

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

PaulB2Code commented 8 years ago

Ok, I will ask the team leader to see how to implement.

brian-armstrong commented 6 years ago

If anyone's looking for a Go lib with a pin channel, mine supports it on any board with sysfs https://github.com/brian-armstrong/gpio