#include "Arduino.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("**** Hello world ****");
}
void loop() {
// put your main code here, to run repeatedly:
byte a = 1;
Serial.printf("Begin: a = %d\r\n",a);
a = a << 1;
Serial.printf("After a << 1 = %d\r\n",a);
a = a << 1;
Serial.printf("After a << 1 = %d\r\n",a);
a = a << 1;
Serial.printf("After a << 1 = %d\r\n",a);
a = a >> 1;
Serial.printf("After a >> 1 = %d\r\n",a);
a = a >> 1;
Serial.printf("After a >> 1 = %d\r\n",a);
while (true);
}