get back to you with the result, I did it
, the java demo now can send out the toggle command and receive the button switch status on the USB bus.
Tsuneo, your suggestion was so so awesome, but it took me a while to understand, modify, compile, and run the demo. The PDF file that came with the package doesn’t have enough details about compiling and running the java demos, and if you use the Javac command in their format, you will end up having some errors, so I decided to write down my own notes, you can download the notes and the modified source code from the attached file:
After you unzip the file, you can read the "Important Readme.doc", in this file I explained step by step how to run and interface the java demo(AtUsbHidGui) to the Generic HID firmware provided by Microchip.
Finally, I would like to thank everybody for their suggestions.
Enjoy HID Java.
post edited by Munther - 2011/01/05 11:43:51