Hi,
to your code:
What compiler and what IDE do you use?
If you get any compiler errors and warnings, please post them.
What worries me:
* "B00000000": it surely depends on compiler, but I know "&b00000000", "0b00000000" ... but no one with a "B" as first letter
LedsDisplay = ((LedsDisplay) || (PowerDisplay));
It looks like a "logical OR" instead of a bitwise OR.
so shouldn´t it be:
* (LedsDisplay | PowerDisplay);
* or (LedsDisplay OR PowerDisplay);
Serial.println(LedsDisplay),BIN);
This I expect to cause a compiler error.
It has one opening bracket, but two closing brackets.
****
BTW: I recommend to declare your variables explicitely how you want it to be.
instead of "int LedsDisplay ..."
better write "uint8_t LedsDisplay..." ( unsigned 8 bit )
--> so it´s clear that you force it to be an 8 bit variable without a SIGN bit.
"int" can depend on complier and processor and may be an 8 bit, 16 bit, 32 bit ... variable.
Also it´s a good idea to write in the first lines of code for which type of microcontroler the code is written. Some compiler need this, but you are free to write it as comment.
And especially if you post this code in public (forum) ...
Klaus