Implement two keyboard buttons for usage in addition to hardware buttons. #524
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.
I built wireless hardware buttons based on an ESP32 emulating a BLE keyboard and connecting to a Raspberry Pi running Pibooth. Pibooth does already support the control with a keyboard (for debugging?) but the keys change from view to view. On the intro view one can only continue with the keys
P
orCtrl + E
, on the choice view one need to press arrow keysleft
orright
.With the changes I implemented, the control of all views (except the settings) is now possible with only the two arrow keys
left
andright
in addition to the two hardware buttons directly connected to the Pi. Thus, my two BLE wireless buttons can now just send the two respective keys to control Pibooth wirelessly from the photo area.I didn't see any conflicts occurring with the implementation as it doesn't remove but only adds functionality.