char s[8];//要转换成的字符数组
#define BIN(x) itoa(x,s,2)
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.printf("%s\n",BIN(0x40 | 0x80));
Serial.printf("%s\n",BIN(~(0x40 | 0x80)));
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}