diff options
author | tmk <nobody@nowhere> | 2010-08-10 13:45:28 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-08-10 13:45:28 +0900 |
commit | 20711b59e7b72d0a1875c3d38832fade6f56445d (patch) | |
tree | 5dfd01de9cb8db2641c443ffb7c02e247caddaca | |
parent | ac3134ffeb3a2fb998e628e97a06b413fba8ee48 (diff) |
change file name.
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | mykey.c (renamed from example.c) | 10 |
3 files changed, 15 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..293c452390 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.dep +*.o +*.eep +*.elf +*.hex +*.lss +*.lst +*.map +*.sym @@ -41,7 +41,7 @@ # Target file name (without extension). -TARGET = example +TARGET = mykey # List C source files here. (C dependencies are automatically generated.) @@ -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); } } |