Page 1 of 1

Problems with your HIDKeys Firmware

Posted: Sun Jun 10, 2007 1:41 am
by technican
Hi.

I've downloaded the documents for your project "HIDKeys". But now i have some problems. I've copied the "main.c" into my AVR Studio for assembling. Also I've copied the files which are needed for the inclution.
My AVR Studio has a Problem with this part of the Code:

Code: Select all

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/wdt.h>


Anothe problem is, that I don't know where I can set the different keys. I would need F1, F2, F3, F4, F5, Enter, Right Shift, Left, Right, Up, Down und
ESCape



I hope anybody can help me.
Thank you very much out there :D

Falko Rieger

Posted: Sun Jun 10, 2007 10:09 pm
by christian
You need avr-gcc and associated tools to compile any AVRUSB project. Since you have AVRStudio, I assume that you run Windows. I'd recommend WinAVR in this case because it's one big package with everything you need.

To change the keys, edit the table keyReport[] in main.c. Remove the modifier (unless you want one) by replacing it with a 0 and change they key to KEY_F2 and so on.

For more key codes see the HID usage tables for keyboards available on http://www.usb.org/developers/hidpage/