I tried but I can't get this right. What's wrong with the bold line?
print('Got code: %c', buffer)
I know I have to use ";" and double quotes. But is it ok to use just "print" and not "Serial.print"? The rest of the code uses print inside the "switch" and it works.
Can someone help me?
Thanks in advance.