Hi,
This is the basic code for converting your buttons to a function value,
TopButVal = 1 * (!digitalRead(TopButton));
MidButVal = 2 * (!digitalRead(MidButton));
BotButVal = 4 * (!digitalRead(BitButton));
ButFuncVal = TopButVal + MidButVal + BotButVal;
If you are debouncing then it may be a bit different.
If you like write some new code just to test it with the IDE monitor.
Tom... ![]()