gpio icon indicating copy to clipboard operation
gpio copied to clipboard

Use channels to watch for events

Open dakerfp opened this issue 8 years ago • 5 comments

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

dakerfp avatar Jun 07 '16 04:06 dakerfp

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 < [email protected]> 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 .

davecheney avatar Jun 07 '16 05:06 davecheney

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

PaulB2Code avatar Aug 17 '16 18:08 PaulB2Code

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. [email protected] 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.

davecheney avatar Aug 18 '16 05:08 davecheney

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

PaulB2Code avatar Aug 18 '16 11:08 PaulB2Code

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

brian-armstrong avatar Jan 09 '18 01:01 brian-armstrong