diff options
-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); } } |