I have a 4 relay board that I can connect to via bluetooth. I've setup 4 buttons to switch the relays on and off. It works, but when I press relay 1 button, it only takes one press, but when I press relay 2, I have to press it twice. This also applies to the other buttons.
I've be searching the internet to solve this problem but I cannot find any solution.
I think it's got to do with the initialize global or something like that. I need the buttons to be completely separate from each other I think.
I could not find any Youtube video showing how to fix this problem or showing the actual program, so if I get it sorted, I'll do a Youtube tutorial on this.