Page 1 of 1

HID Keys Newbie Question

Posted: Thu May 03, 2007 4:50 pm
by eddie69
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

Posted: Mon May 07, 2007 11:48 am
by christian
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.