Help how to disable buttons or no fuction other buttons if i hold the one buttons only

how to disable other buttons if i hold buttons 1 and the other button off ,if i hold 2 buttons only 1 function

Please read this thread

And than ask your question in right way

Your description is not quite clear to me.

Either don't read them or ignore the result of the reading.

if button1 isn pressed
{
  do something
}
else
{
  read some other buttons and act on them.
}

Which Arduino (or other MCU board)?
How many buttons?
How are the buttons connected to which MCU pins?

4 buttons

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.