In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: You could use an edge-triggered interrupt on one of the RB pins, but this might be a little easier: [code] DO WHILE AbortBtn = No PAUSE 50 INC ledTmr IF ledTmr = 20 THEN Led = ~Led ledTmr = 0 ENDIF LOOP[/code] This checks the abort button 20 times per second, instead of once per second as with your code. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=204267#m204269 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)