void setup() {
/*Design a binary mask where specific bits are set to 1
/and the others set to 0. This will define what you want
to affect.
*/
DDRB = 0b11111111; //set register to output
}
void loop() {
unsigned char bitMask = 0b10000000;
unsigned char originalValue = 0b11111111;
DDRB = bitMask & originalValue;
delay(1000);
}
//bit shifting formula
//number >> n