X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=print.h;h=78912df81b2dcbb484f756e36dc8956d986bbc0d;hb=1a7c3585ed9a68099e371b3180a404dd5d08ce1a;hp=d6bb0aad2d5a3d55c4fe82441c8755c229999f12;hpb=8cfb3712d58e4a88029dfd00111714e91939005e;p=max%2Ftmk_keyboard.git diff --git a/print.h b/print.h index d6bb0aad..78912df8 100644 --- a/print.h +++ b/print.h @@ -1,17 +1,20 @@ -#ifndef print_h__ -#define print_h__ +#ifndef PRINT_H__ +#define PRINT_H__ 1 +#include #include -#include "usb_keyboard_debug.h" + + +extern bool print_enable; // this macro allows you to write print("some text") and // the string is automatically placed into flash memory :) #define print(s) print_P(PSTR(s)) -#define pchar(c) usb_debug_putchar(c) void print_P(const char *s); void phex(unsigned char c); void phex16(unsigned int i); void pbin(unsigned char c); +void pbin_reverse(unsigned char c); #endif