I have updated your library with functions (update and attach) for when the currentState is provided externally (eg from shift registers for reading a lot of buttons at the same time).
For you to consider.
Thank you
Lathoub
Hello,
Thank you for this great library - very helpful.
I have updated your library with functions (update and attach) for when the currentState is provided externally (eg from shift registers for reading a lot of buttons at the same time).
For you to consider.
Thank you
Lathoub
The current version of Bounce has the following methods that can be extended by a custom class for custom needs. If you do create a custom class, please share it.
virtual bool readCurrentState()
virtual void setPinMode(int pin, int mode)
The current version of Bounce has the following methods that can be extended by a custom class for custom needs. If you do create a custom class, please share it.
```
virtual bool readCurrentState()
virtual void setPinMode(int pin, int mode)
```
The issue is closed because it was already addressed in response to requests by other users. If you are not satisfied with the current implementation I am willing to consider modifications to the way the class can be extended. BUT I do not want to change any of the public methods.
You can change the (slow) digitalRead by overriding virtual bool readCurrentState().
The issue is closed because it was already addressed in response to requests by other users. If you are not satisfied with the current implementation I am willing to consider modifications to the way the class can be extended. **BUT I do not want to change any of the public methods.**
You can change the (slow) `digitalRead` by overriding `virtual bool readCurrentState()`.
Pull request closed
Please reopen this pull request to perform a merge.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hello,
Thank you for this great library - very helpful.
I have updated your library with functions (update and attach) for when the currentState is provided externally (eg from shift registers for reading a lot of buttons at the same time).
For you to consider.
Thank you
Lathoub
The current version of Bounce has the following methods that can be extended by a custom class for custom needs. If you do create a custom class, please share it.
If these methods are not sufficient, please share your needs and I will try to see how the library can me modified to be more extensible.
No a lot of discussion - you closed the issue right away...
I prefer to have the debounce functionality separate from the (slow)
digitalReadThe issue is closed because it was already addressed in response to requests by other users. If you are not satisfied with the current implementation I am willing to consider modifications to the way the class can be extended. BUT I do not want to change any of the public methods.
You can change the (slow)
digitalReadby overridingvirtual bool readCurrentState().Pull request closed