summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authortmk2010-08-22 23:58:37 +0900
committertmk2010-08-23 00:01:42 +0900
commit8cfb3712d58e4a88029dfd00111714e91939005e (patch)
tree4650383eac715a84419e678e0e990c99a7423907 /print.c
parent20711b59e7b72d0a1875c3d38832fade6f56445d (diff)
matrix scan & default keymap
Diffstat (limited to 'print.c')
-rw-r--r--print.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/print.c b/print.c
index e6aa1fe52..2f0617c64 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<<i)) ? '1' : '0');
+ }
+}