In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: AlanCF, If you are following the standard way to hookup LEDs, then setting the bit to 1 will turn it off and 0 turns it on - exactly as you are getting. Normally people attach the LED to the positive power supply and then provide a path to ground through an output pin. If you followed virtually any schematics or directions on the 'net or in books, you'll find this is the normal way to attach LEDs (and pretty much any device you plan on enabling/disabling via a CPU). Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=275765#m275778 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)