summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}