I would like to get a suggestion on how should I add multiple buttons to run the same function. I am currently building a Pick to Light system. The problem I am facing now is how to add multiple buttons that play a role which is to switch off the lit LEDs(standby mode) when there is no new activity in order to save electricity. A simple coding will help me a lot.
start of loop()
if button 1 becomes pressed
call led function
end if
if button 2 becomes pressed
call led function
end if
end of loop()
start of led function
//do stuff with leds
end of led function
It would help if you posted your current code and explained what problems you are having