Implement generalized EncodedButtonConfig which can handle
M=2^N-1 buttons using N pins using an optimization that makes
only N calls to digitalRead() instead of M * N calls. Add
examples/Encoded16To4Buttons example; rename examples/EncodedButtons
to examples/Encoded8To3Buttons.
EncodedButtonConfig
which can handleM=2^N-1
buttons usingN
pins using an optimization that makes onlyN
calls todigitalRead()
instead ofM * N
calls. Addexamples/Encoded16To4Buttons
example; renameexamples/EncodedButtons
toexamples/Encoded8To3Buttons
.