Added interrupt service routine (ISR) support and new pin controllers with change detection#5
Open
spacepope wants to merge 16 commits intomikeclayton:masterfrom
Open
Added interrupt service routine (ISR) support and new pin controllers with change detection#5spacepope wants to merge 16 commits intomikeclayton:masterfrom
spacepope wants to merge 16 commits intomikeclayton:masterfrom
Conversation
…E before as in the write mode command..)
… unmanaged safe array. - added lseek method import.
… enabled via constructor and raises an event every time a masked input state changes. (this functionality uses Raspberry Pi ISR on GPIO Pin 25 per default, on which the PiFace connects its ISR signaling line.)
- added InputPinController
- added sample console app for ISR usage
…k and hold actions. - modified ISR sample to demonstrate ButtonInputController
- added InputPinGroupController (like InputPinController to observe multiple pins via byte mask) - added IDisposable to PiFaceDevice
…ilehandle writes (gpio utility was only part of WiringPi installation).
Owner
|
Hey, sorry for not reviewing sooner - I appreciate the work you've put into this PR. Input pin interrupts were something I wanted to try to get working, but I didn't really know where to start so it's great that you've added this functionality. Raspberry Pi / PiFace was a bit of a hobby while I had the time to play with them but I've had to put it on hold for the last couple of years due to other commitments so I've not really had time to look at this. I'll leave the PR active, and hopefully one day I'll get around to merging it all! Thanks again. Mike |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi there,
nothing happened since a long time.
I continously enhanced the functionality for one of my personal projetcs and possibly should have done a pull request earlier - but hey, better late than never ;-)
So what's new compared to your version:
InputPinController,InputPinGroupControllerandButtonInputControllerwith pin change detection.You can see a small example in the
ISRSampleConsoledemo project.Hope that i can make somebody else happy, who ever wants to do that kinda stuff with their PiFace on Mono..
If you have any questions, feel free to ask..
Best regards
Hannes