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