X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=print.c;h=8e46decac4304f70a876fe018ce346faf129e312;hb=f777960c7255b469f3daaec89b9808844f13bb88;hp=e6aa1fe52b9bf389a2086cd84f0b9e1afe7c4852;hpb=ac3134ffeb3a2fb998e628e97a06b413fba8ee48;p=max%2Ftmk_keyboard.git diff --git a/print.c b/print.c index e6aa1fe5..8e46deca 100644 --- a/print.c +++ b/print.c @@ -58,5 +58,16 @@ void phex16(unsigned int i) } +void pbin(unsigned char c) +{ + for (int i = 7; i >= 0; i--) { + usb_debug_putchar((c & (1<