HID Keys Newbie Question

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
eddie69
Posts: 1
Joined: Mon Apr 16, 2007 6:46 pm

HID Keys Newbie Question

Post by eddie69 » Thu May 03, 2007 4:50 pm

Hi,

I am really new to this whole programming experience. I have followed your example 'HIDkeys' on my test board using a Tiny2313 and managed to get it to work. I really have a lot to learn, I have been doing some reading with the books and tutorials suggested in the HID webpage.

I was wondering if someone could show me a how to make an output act when it senses input on another pin. Again, based on the Keys example, it shows all inputs without any outputs. For instanse a switch on
Port B pin 0(input) to light up lets say an LED on Port B pin 1(output).

Thanks for your time.

Respectfully,
Eddie

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

Post by christian » Mon May 07, 2007 11:48 am

If you want to control inputs and outputs from a host application, you should make a HID which is neither a keyboard nor a mouse. Look at the "Automator" example.

HIDs which are neither keyboard nor mouse are more or less ignored by the operating system and the application can use read/write calls to get/send data from/to the device.

Post Reply