Request: Allow multiple physical pins or software-only "pin" for each Bounce2 object #66

Closed
opened 2020-08-19 17:57:01 +03:00 by EclipseBoom · 1 comment
EclipseBoom commented 2020-08-19 17:57:01 +03:00 (Migrated from github.com)

In my application I have 2 different physical pins that control one logical function. It would be nice to be able to use the bounce2 methods to read and handle them as a logical input rather than in a 1:1 physical to logical mapping.

Also, it would be nice if there were a public method to programmatically set the object state via a software "pin". In my example I have a serial console so it would be nice if I could "press" a button via serial input command. This would also be really nice for test rigs to exercise the button inputs via software.

Don't know how widespread the use for these might be but I could make use of it...

In my application I have 2 different physical pins that control one logical function. It would be nice to be able to use the bounce2 methods to read and handle them as a logical input rather than in a 1:1 physical to logical mapping. Also, it would be nice if there were a public method to programmatically set the object state via a software "pin". In my example I have a serial console so it would be nice if I could "press" a button via serial input command. This would also be really nice for test rigs to exercise the button inputs via software. Don't know how widespread the use for these might be but I could make use of it...
thomasfredericks commented 2020-08-20 16:30:37 +03:00 (Migrated from github.com)

Hi @EclipseBoom ,

That is why the current version of the library has been split into three classes. For your needs you would need to use the Debouncer class. See it in Bounce2.h.

Hi @EclipseBoom , That is why the current version of the library has been split into three classes. For your needs you would need to use the Debouncer class. See it in Bounce2.h.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/thomasfredericks_Bounce2#66