In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: You're attempting to move a byte (result of FOO & 1) into a bit -- can't do it (PBASIC masks this by moving bit zero of the result which is probably what you want). Logically, your program could be: Led1 = foo.0 ... because any bit ANDed with 1 will remain unchanged, therefore you can simply copy the target bit to the output LED. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228160#m228168 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)