Author Topic: hold button to change modes instead of a tap  (Read 1470 times)

Offline tomcat

  • ½ Pint
  • *
  • Posts: 31
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
hold button to change modes instead of a tap
« on: August 02, 2009, 09:23:04 AM »
Hello, for instence in the opensource code to change modes you tap the button, and wait for the 10ms button de-bounce, how would you change that so you have  to hold down the button to change modes?

I know in the code it says this 10ms, i have changed that to 300ms or 3 sec and compiled it and it is still just a tap. If you have any sujestions your help would be much appreciated.

Wait10ms
   clrf   TEMP2
   movlw   0x0D
   movwf   TEMP1      ;rough 10ms timer for button debounce.

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal