Binary reader with arduino blinking 8 leds
You just prepend the number in binary with B e.g. B01100100 which is 100 in decimal

byte sequence[] = {
    B10000000,
    B01000000,
    B00100000,
    B00010000,
    B00001000,
    B00000100,
    B00000010,
    B00000001
}


And to check the n-th bit from the right in a number you do

boolean bit_set = number &amp; (1 &lt;&lt; (n - 1)) != 0;