summaryrefslogtreecommitdiffstats
path: root/usb_keyboard.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-10-26 21:32:45 +0900
committertmk <nobody@nowhere>2010-10-26 21:32:45 +0900
commit461e0d3d8c82cc78d29d3115af3c417bb51bb50f (patch)
tree844b28eed904f72aa18873f25de435379fa1bad3 /usb_keyboard.c
parent7a336b05ec2d1056fe2206ae218199c66e8980da (diff)
ADD: keymap macro for human to read easier
ADD: controller.h for controller board definition(teensy) ADD: debug toggle
Diffstat (limited to 'usb_keyboard.c')
-rw-r--r--usb_keyboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usb_keyboard.c b/usb_keyboard.c
index 44365bb857..dc781f0172 100644
--- a/usb_keyboard.c
+++ b/usb_keyboard.c
@@ -2,6 +2,7 @@
#include <avr/pgmspace.h>
#include "usb_keyboard.h"
#include "print.h"
+#include "debug.h"
static bool is_sent = false;
@@ -112,6 +113,7 @@ bool usb_keyboard_has_mod(void) {
}
void usb_keyboard_print(void) {
+ if (!debug_keyboard) return;
print("\nkeys: ");
for (int i = 0; i < 6; i++) { phex(keyboard_keys[i]); print(" "); }
print("\n");