I bet someone a long time ago pointed this out but I would like to draw your attention to the code for shift registers
this one
It clearly states
//Arduino doesn't seem to have a way to write binary straight into the code
I am sure the whole of the array
dataArrayRED[0] = 0xFF; //11111111
dataArrayRED[1] = 0xFE; //11111110
dataArrayRED[2] = 0xFC; //11111100
dataArrayRED[3] = 0xF8; //11111000
dataArrayRED[4] = 0xF0; //11110000
dataArrayRED[5] = 0xE0; //11100000
dataArrayRED[6] = 0xC0; //11000000
dataArrayRED[7] = 0x80; //10000000
dataArrayRED[8] = 0x00; //00000000
dataArrayRED[9] = 0xE0; //11100000
could be changed to
dataArrayRED[] = {B11111111,B11111110,B11111100,B11111000,B11110000,B11100000,B11000000,B10000000,B00000000,B11100000};
or even
dataArrayRED[] =
{B11111111
,B11111110
,B11111100
,B11111000
,B11110000
,B11100000
,B11000000
,B10000000
,B00000000
,B11100000};
Using the capital B to "write binary straight into the code".
Is it possible to add this fact into the code?