change file name.
authortmk <nobody@nowhere>
Tue, 10 Aug 2010 04:45:28 +0000 (13:45 +0900)
committertmk <nobody@nowhere>
Tue, 10 Aug 2010 04:45:28 +0000 (13:45 +0900)
.gitignore [new file with mode: 0644]
Makefile
mykey.c [moved from example.c with 95% similarity]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..293c452
--- /dev/null
@@ -0,0 +1,9 @@
+.dep
+*.o
+*.eep
+*.elf
+*.hex
+*.lss
+*.lst
+*.map
+*.sym
index 26403c75ad8fcdd1c2f678b1cb07d9019451cc13..d54627ce1f9c13967a6f608b04df99860f6380d2 100644 (file)
--- 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.)
similarity index 95%
rename from example.c
rename to mykey.c
index 2433794eb748e8527aa426a4888561873f3a1120..f69503e5f5752406c7060dc252be95fe1569f2b4 100644 (file)
--- 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);
        }
 }
 
Imprint / Impressum