From: tmk Date: Tue, 10 Aug 2010 04:45:28 +0000 (+0900) Subject: change file name. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=20711b59e7b72d0a1875c3d38832fade6f56445d;p=max%2Ftmk_keyboard.git change file name. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..293c4523 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.dep +*.o +*.eep +*.elf +*.hex +*.lss +*.lst +*.map +*.sym diff --git a/Makefile b/Makefile index 26403c75..d54627ce 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ # Target file name (without extension). -TARGET = example +TARGET = mykey # List C source files here. (C dependencies are automatically generated.) diff --git a/example.c b/mykey.c similarity index 95% rename from example.c rename to mykey.c index 2433794e..f69503e5 100644 --- a/example.c +++ b/mykey.c @@ -85,16 +85,16 @@ int main(void) reset_idle = 0; for (i=0; i<8; i++) { if (((b & mask) == 0) && (b_prev & mask) != 0) { - usb_keyboard_press(KEY_B, KEY_SHIFT); - usb_keyboard_press(number_keys[i], 0); + //usb_keyboard_press(KEY_B, KEY_SHIFT); + //usb_keyboard_press(number_keys[i], 0); print("Port B, bit "); phex(i); print("\n"); reset_idle = 1; } if (((d & mask) == 0) && (d_prev & mask) != 0) { - usb_keyboard_press(KEY_D, KEY_SHIFT); - usb_keyboard_press(number_keys[i], 0); + //usb_keyboard_press(KEY_D, KEY_SHIFT); + //usb_keyboard_press(number_keys[i], 0); print("Port D, bit "); phex(i); print("\n"); @@ -130,7 +130,7 @@ ISR(TIMER0_OVF_vect) if (idle_count > 61 * 8) { idle_count = 0; print("Timer Event :)\n"); - usb_keyboard_press(KEY_SPACE, 0); + //usb_keyboard_press(KEY_SPACE, 0); } }