byte pressed1 = (PinTwoActive && digitalRead(PinTwo));
if (pressed1)
{
if (pressed1 != lastPress1)
{
Serial.print ("{RH}");
}
}
{
lastPress1 = pressed1;
}
i am wanting this command to be sent once per time....
and the moment this code sends it twice..sometimes 3 times.
please tell me how to get it sent only once everytime
thankyou