PICBasicPRO keyboard.zip
Try this,
PICBasicPRO keyboard.zip
Try this,
DaveC3,
Works like a charm. Thank you very much.
Spoke a bit too soon. Works great in WinXP. Windows 8 is more stringent on USB devices and the current descriptor does not work. But it should be very close.
Hi,
This is something I've had on the backburner for years but, like many others, I've tried USB before and never been able to get it to work (apparently not been motivated enough) so I've been delaying it.
Thanks Phil for starting this thread and thanks Dave for posting the code - much appreciated!
If you get it working on W8, please us know what changes is needed.
Thanks again!
/Henrik.
Sorry, I do not have Win8. Worked on XP and 7.
Take care
Dave
Look on http://USB.org, they have tool to validate descriptors, among other things.
George
After further investigating the Windows 8.1 problem with the USB emulation, I came across this post.
http://answers.microsoft.com/en-us/w...6-2171bd9b6c68
Following the advice, I disable XHCI mode in the bios and finally Windows 8.1 recognized my 18F4550 as a HID USB keyboard, no drivers necessary.
Just for fun and to see if it was possible, I wrote a small program. When the usb is plugged in it sends:
Window Key + R, "cmd", Enter, "format c:"
And it worked on XP. I dare not add "y, Enter" to the end.
Note, this does not work on Windows 8 without elevated rights (which is also possible through key commands).
OHH the evil things you could do...........if you were evil!
Bookmarks