summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-08-10 13:45:28 +0900
committertmk <nobody@nowhere>2010-08-10 13:45:28 +0900
commit20711b59e7b72d0a1875c3d38832fade6f56445d (patch)
tree5dfd01de9cb8db2641c443ffb7c02e247caddaca
parentac3134ffeb3a2fb998e628e97a06b413fba8ee48 (diff)
change file name.
-rw-r--r--.gitignore9
-rw-r--r--Makefile2
-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
diff --git a/Makefile b/Makefile
index 26403c75ad..d54627ce1f 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
index 2433794eb7..f69503e5f5 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);
}
}