In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: Take a look at some code I wrote (with code taken from JonnyMac and Bean). It does not use debouncing but does wait for any of 5 or so button presses and also writes and reads a WORD variable to the EEPROM so it does not get set to 0 if power is lost. It sounds alot like what you need. The link has the code in it a few posts down: [url=http://forums.parallax.com/forums/default.aspx?f=15&m=200997]http://forums.parallax.com/forums/default.aspx?f=15&m=200997[/url] Good luck. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=208480#m208696 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)