In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: No, it's a hardware issue. If the button is wired as "active low", i.e., it is tied to ground when pressed, then it will read as a "0" when pressed, "1" otherwise. You would need to adjust for this in firmware, either by setting a flag to 1 (so that regardless of how the device is wired, your code can read a "1" for a pressed button), or by changing what happens at the jump. I used the former technique in my example above. The question is -- how is your circuit actually wired? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=429713#m430403 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)