Hi, I'm trying to follow this guide: https://www.arduino.cc/en/Tutorial/StateChangeDetection
and use it with multiple buttons, but I still keep getting conflicts between them. I would like each button to signal to two differents pins when they are pushed.
Any guidance on how to solve that ?
Any guidance on how to solve that ?
Use different variables or flags for each switch.
Or, you could post your code, and we could take a look at it.
Use different variables or flags for each switch.
and put the variables in arrays so that you can iterate through them to avoid duplicating code.