I'm a beginner with V-USB, but I have great plans! I decided to begin my learning process with modifying code of EasyLogger. So, I want to create a USB multimedia keyboard on ATTity45 microcontroller. The multimedia functions I wanna use are volume control and a 'mute' button.
I tried to send keycodes and modifiers and... it works! Going deeper, i've changed a line of HID descriptor to
Code: Select all
0x25, 0x85, // LOGICAL_MAXIMUM (133)
Ok, I found another way, microsoft documents say:
Code: Select all
Consumer Page Audio Controls Supported in Windows Operating Systems
0xE2 Mute
0xE9 Volume Increment
0xEA Volume Decrement
and there is an example of usage in hid header:
Code: Select all
Usage Page (Consumer)
Usage (Consumer Control)
Collection (Application)
Logical Minimum (0)
Logical Maximum (1)
Usage (Volume Increment)
Usage (Volume Decrement)
Report Size (1)
Report Count (2)
Input (Data, Variable, Absolute, Preferred)
Usage (Mute)
Report Count (1)
Input (Data, Variable, Relative, Preferred)
Report Count (5)
Input (Constant)
End Collection
And the question is... How can I combine and use keyboard and volume control together?
The next step is to combine that with the third hid device, that sends two bytes to computer and receives about 40 bytes. My own win application should work with this device.