void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello");
}
void processStr () {
}
void loop() {
// put your main code here, to run repeatedly:
uint8_t ourByte = 0;
if (Serial.available ()) {
delay(10);
char buf [10];
int n = Serial.readBytesUntil ('\n', buf, sizeof(buf) - 1);
buf [n] = '\0';
ourByte = strtol(buf, 0, 2);
Serial.println(ourByte);
}
}