Hey there.
I'm having some trouble. I'm trying to program the buttons in my app to send 1 value when pressed and another when released. It triggers a switch state on an arduino uno r3 via bluetooth. But it just toggles it on for a second then off again. Below is my logic. I've seen some people have this working, im wondering if it is a bug or something I did Wrong.
case 'A': button1State = HIGH; break;
case 'B': button1State = LOW; break;
case 'C': button2State = HIGH; break;
case 'D': button2State = LOW; break;
case 'E': button3State = HIGH; break;
case 'F': button3State = LOW; break;
case 'G': button4State = HIGH; break;
case 'H': button4State = LOW; break;
case 'I': button5State = HIGH; break;
case 'J': button5State = LOW; break;
Any help would be greatly appreciated