Hello Unregistered ,
Originally Posted by sean-h What about this? Code: YourByte var byte YourByte=Value you set portA.1 = YourByte.Bit0 portA.2 = YourByte.Bit1 PortC.0 = YourByte.Bit2 PortC.1 = YourByte.Bit3 PortC.2 = YourByte.Bit4 PortB.4 = YourByte.Bit5 PortB.5 = YourByte.Bit6 PortB.6 = YourByte.Bit7 Cheers Sean. Now that was to easy! Dooh! I was wondering this morning how to do the .bit thing
YourByte var byte YourByte=Value you set portA.1 = YourByte.Bit0 portA.2 = YourByte.Bit1 PortC.0 = YourByte.Bit2 PortC.1 = YourByte.Bit3 PortC.2 = YourByte.Bit4 PortB.4 = YourByte.Bit5 PortB.5 = YourByte.Bit6 PortB.6 = YourByte.Bit7
Forum Rules
Bookmarks