HIDKeys and status LEDs

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
gekko15
Posts: 1
Joined: Wed Jul 22, 2009 6:13 pm

HIDKeys and status LEDs

Post by gekko15 » Wed Jul 22, 2009 6:34 pm

To whom it may concern;

Will it be possible to adapt the HIDKeys code to include an output of the Scroll Lock status LED? This will allow the project to be easily adapted to applications that require inputs and outputs without a specific computer side driver. Any help in this regards will be greatly appreciated.

Thanks.

alpha
Posts: 5
Joined: Sun Feb 04, 2007 8:57 pm

Re: HIDKeys and status LEDs

Post by alpha » Wed Aug 12, 2009 2:56 am

See my merged code from HIDkeys and C64 keys at:
http://forums.obdev.at/viewtopic.php?f=8&t=3103&p=10497#p10497

I guess you can set the LEDs in the usbFunctionWrite function... I just started AVR one week ago, so I'm not 100% sure.

Code: Select all

uchar usbFunctionWrite(uchar *data, uchar len) {
   return 0x01;
}


Regards,
Markus Schulz

Post Reply