I still cannot grasp exactly what your trying to do with the value you get but if your trying to turn on/off the LED's in the binary pattern corresponding to the value receive then you can also do it this way
const byte target = B11110001;
void setup(){
Serial.begin(9600);
}
void loop(){
for (byte x=0;x<8;x++){
if (((target>>x) & 1)==1){
Serial.print("1");
}
else {
Serial.print("0");
}
}
Serial.println();
for (byte x=0;x<8;x++){
if (((target<<x) & 128)==128){
Serial.print("1");
}
else {
Serial.print("0");
}
}
while(true){
}
}
I have included 2x versions that rotate the bits out to either the left or the right.