change file name.
This commit is contained in:
parent
ac3134ffeb
commit
20711b59e7
3 changed files with 15 additions and 6 deletions
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
.dep
|
||||||
|
*.o
|
||||||
|
*.eep
|
||||||
|
*.elf
|
||||||
|
*.hex
|
||||||
|
*.lss
|
||||||
|
*.lst
|
||||||
|
*.map
|
||||||
|
*.sym
|
2
Makefile
2
Makefile
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
|
|
||||||
# Target file name (without extension).
|
# Target file name (without extension).
|
||||||
TARGET = example
|
TARGET = mykey
|
||||||
|
|
||||||
|
|
||||||
# List C source files here. (C dependencies are automatically generated.)
|
# List C source files here. (C dependencies are automatically generated.)
|
||||||
|
|
|
@ -85,16 +85,16 @@ int main(void)
|
||||||
reset_idle = 0;
|
reset_idle = 0;
|
||||||
for (i=0; i<8; i++) {
|
for (i=0; i<8; i++) {
|
||||||
if (((b & mask) == 0) && (b_prev & mask) != 0) {
|
if (((b & mask) == 0) && (b_prev & mask) != 0) {
|
||||||
usb_keyboard_press(KEY_B, KEY_SHIFT);
|
//usb_keyboard_press(KEY_B, KEY_SHIFT);
|
||||||
usb_keyboard_press(number_keys[i], 0);
|
//usb_keyboard_press(number_keys[i], 0);
|
||||||
print("Port B, bit ");
|
print("Port B, bit ");
|
||||||
phex(i);
|
phex(i);
|
||||||
print("\n");
|
print("\n");
|
||||||
reset_idle = 1;
|
reset_idle = 1;
|
||||||
}
|
}
|
||||||
if (((d & mask) == 0) && (d_prev & mask) != 0) {
|
if (((d & mask) == 0) && (d_prev & mask) != 0) {
|
||||||
usb_keyboard_press(KEY_D, KEY_SHIFT);
|
//usb_keyboard_press(KEY_D, KEY_SHIFT);
|
||||||
usb_keyboard_press(number_keys[i], 0);
|
//usb_keyboard_press(number_keys[i], 0);
|
||||||
print("Port D, bit ");
|
print("Port D, bit ");
|
||||||
phex(i);
|
phex(i);
|
||||||
print("\n");
|
print("\n");
|
||||||
|
@ -130,7 +130,7 @@ ISR(TIMER0_OVF_vect)
|
||||||
if (idle_count > 61 * 8) {
|
if (idle_count > 61 * 8) {
|
||||||
idle_count = 0;
|
idle_count = 0;
|
||||||
print("Timer Event :)\n");
|
print("Timer Event :)\n");
|
||||||
usb_keyboard_press(KEY_SPACE, 0);
|
//usb_keyboard_press(KEY_SPACE, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue