Programming doubt

Hi all,

I need your help in my project. I want to program for the below said logic. I have a 4 digit binary serial number say 1010, i should make each digit as my digital output. Example if my serial read is 1010 my digital pins 13,11 should be high and 12, 10 should be low(if i took 4 digital outputs from 10 to13). I mean my each bit should be a output. Could you pls help me in solving this. I have tried so many but its not working.

This sounds like an assignment. We don't do your homework.e work for you but if you post some examples of your " I have tried so many ", we'll do our best to help you with those.