void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
static byte b1 = B10101010;
static byte b2 = B11110000;
byte b3 = b1 & b2; // AND
byte b4 = b1 | b2; // OR
byte b5 = b1 ^ b2; // XOR
byte b6 = ~b1; // NOT
byte b7 = ~(b1&b2); // NAND
static byte b8 = B00000001;
b8 = b8 << 1;
static byte b9 = B10100000;
b9 = b9 >> 3;
Serial.println(b9, BIN);
delay(500);
// b1++;
//while(true);
}