Output 6 bits from the digital pins

Hi all

The question I have is, if there is a component which has a 6 bit input, shift register how would I interface the arduino to output 6 bits from digital pins, e.g. Desired bits to be shifted are 111111 using a shift register

Regards

Inda

shiftIn() the byte then use bitRead() to determine the state of the bits and output the bit state using digitalRead()

Desired bits to be shifted are 111111 using a shift register

Shift registers deal with 8 bits. Two of the bits can go to pins that are not connected to anything. Then, it doesn't matter what the value of the bits is, though its common to set them to 0.