Hi,
I have unsigned char myvar, i got 5 bits and 5 pins 30, 40, 50, 60 and 70. need to map the bits to pins so that I loop though each bit in myvar and sets its pin High or low. I am using array but like to learn a clever way like using structs, unions, etc.