I do believe there is a sub-category in the HID USB category specific to keyboards. Each key has its own command code. If you enumerate as a keyboard, it is just using what has already been developed.
I do believe there is a sub-category in the HID USB category specific to keyboards. Each key has its own command code. If you enumerate as a keyboard, it is just using what has already been developed.
The easy part is to first verify the mouse code emulates correctly when connected to the PC. This ensures the skeleton is a working one.
The not so easy thing to do is to get the Descriptor tables for the keyboard matched to what is expected by the PC. Once you have that, it's just a matter of reading/writing to the USB system every mS or so.
Suggest you look for the 'Descriptor Tool' DT.EXE which will help you build the descriptor table. However, you will need to adjust the tables for PBP
Good luck
I have some code (based on something found on the forum I'm sure) that does USB keyboard emulation.
Letters and numbers I know works but I don't think I implemented F1-F12 etc. I'll dig it out and post it if you're interested.
Did you find this in the forum ?
http://www.picbasic.co.uk/forum/show...oard+emulation
Oh, you naughty aerostar! I guess alzheimer is knocking my door...
Too much info on this USB mess... Lost the links I kept in case I needed them back.
Thanks people for the info.
Henrik, if you find your test code, please do post it. Will save me some time I am sure.
Ioannis
I made keyboard to use as shortcuts for EAGLE. Should be exactly what you need. I used it on easypic dev board. Pic should be 18F4550.
Here is complete project My UsbKeyboard.zip
I created that using many examples from forum...
Thank you very much pedja089!
Looks great and very close to what I need to do. have to add a small graphics display and test it on Win 10. Hope Win 10 do not pose any communication problem.
Really appreciated.
Ioannis
Bookmarks