Hi Tim Here is the h file #ifndef __BUTTON_H //Phillip Coiner GPS Source #define __BUTTON_H //4710 Eagleridge Circle Suite 220 Pueblo Colorado 81008 719-561-9520 #include //Your source for GPS signals 5 April 2005 #include //any comments or suggestions would be greatly appreciated //I have formally studied quite a few high level languages but all the bit twiddling knowledge I've picked up thru osmosis and serendipity. #define dn 1 //so my code mostly works but no one has ever accused me of writing efficent code #define up 2 //I chose the name button because the name switch is a reserved word in C #define enter 3 //I use this in my products for my business but I am sharing this so it should not be sold by anyone. #define blink 1 #define temp 2 void toggle_hold_it(const unsigned char); void init_BUTTON_BUFF(void); void detect_button_push_ISR(void); void configure_button_timer(void); void configure_button_port_bits(void); unsigned char pull_button_event(void); void push_button_event(unsigned char); #endif Phillip Things should be as simple as possible but no simpler Phillip Coiner CTO, GPS Source, Inc. Your source for quality GNSS Networking Solutions and Design Services, Now! -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Tim Losereith Sent: Thursday, April 06, 2006 12:59 AM To: Microcontroller discussion list - Public. Subject: Re: [PIC] debouncing in c Phillip schrieb: > Hi Tim > I have that code working if you need it. > > > > > > Phillip > Thanks for the many answers! I am interested in the code Phillip. Please post it. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist