In SX Microcontrollers, SX/B Compiler and SX-Key Tool, DJFX wrote: For this code we are running LED's that represent our Solenoid, Fan and Alarm. The output I get is when I push any of the button's our Alarm and Fan LED's turn on. What I need is that only when gas, RB.6 is high the Alarm and Fan LED's turn on. If RB.6 is high and RB.5 or RB.4 are high, my Alarm and Fan LED's should turn off. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99428#m99448 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)