Hi, there an example in CARM user guide:
#include <stdio.h> void test_getkey (void) { while ((c = _getkey ()) != 0x1B) { printf ("key = %c %bu %bx\n", c, c, c); } }
So what's the meaning of %bu and %bx? I can compile it, but responce is ey = a Bu Bx after pressing an a
I would guess that the specific compiler has a feature where it may send parameters as bytes instead of following the C requirement of always upgrading them to int size.
printf() must then make use of a size modifier to know that it should just pick up one byte when printing the integer.