diff options
author | tmk <nobody@nowhere> | 2010-10-26 21:32:45 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-10-26 21:32:45 +0900 |
commit | 461e0d3d8c82cc78d29d3115af3c417bb51bb50f (patch) | |
tree | 844b28eed904f72aa18873f25de435379fa1bad3 /usb_keyboard.c | |
parent | 7a336b05ec2d1056fe2206ae218199c66e8980da (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.c | 2 |
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"); |