PaulMurrayCbr:
The other way to do this is with bit-fiddling on the ports.
Hi,
I am new to Arduino. Have been using PIC mostly.
One question regarding this: If i use a complete port for input and output, which is useful in my case, how do i define the 'direction' of the complete port?