Home › Forums › Microcontrollers › PIC Microcontroller › PIC16F877A PUSH BUTTON › Reply To: PIC16F877A PUSH BUTTON
January 27, 2015 at 5:21 pm
#10622
Keymaster
Hello, use like this
if(button pressed)
{
__delay_ms(250);
if(still button pressed)
{
//Increment variable here
}
}
This will work for single press and long press.
