Problems with your HIDKeys Firmware

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
technican

Problems with your HIDKeys Firmware

Post by technican » Sun Jun 10, 2007 1:41 am

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sun Jun 10, 2007 10:09 pm

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/

Post Reply