Open TylerLeonhardt opened 6 years ago
Really useful to handle I2C devices that use interrupts pins !
Changed the title so it doesn't only apply to GPIO :)
@TylerLeonhardt Would this make it possible to detect button being pressed?
That's the idea, yes
That's the idea, yes
That would be really nice! :) I'm afraid I don't have the skills to make it but would be happy to help with testing it. Is there any plan on moving forward with it?
@matswi we are currently migrating to .NET IoT library. The closest that we will have so far (I think) "out of the box" will be the possibility to register an event for changes https://github.com/dotnet/iot/blob/master/src/System.Device.Gpio/System/Device/Gpio/GpioController.cs#L281-L296 There's no ETA I'm afraid
It would look something like this:
Under the hood it could use
Register-ObjectEvent
to allow the script execution to be in the same runspace.Unosquare docs here: https://github.com/unosquare/raspberryio#interrupts-and-callbacks