On Sun, 12 Feb 2012, Tamas Rudnai wrote: > You can use a data type that hold all your bits, for example unsigned lon= g > and then just: > > // check least significant bit and act appropriately > if ( 1 =3D=3D mybits & 1 ) { Watch your operator precedence there. -- John W. Temples, III --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .