I’ve been trying to get a photon to work as a keyboard to automatically type in some lines in a terminal program, and haven’t been able to get it to work. I’ve tried copying @ScruffR code exactly from the post below, only removing SYSTEM_MODE(SEMI_AUTOMATIC) because I don’t need it. So far I haven’t gotten it to type out anything on pressing the setup button, and in device manager it never seems to show up as an HID. I’m running firrmware 1.4.0 if thats relevant.
Edit:
I’ve tried different cables with no change, I am able to see the device in the com port and flash over dfu, so thats not an issue.
I’m using Windows 10 home edition. I don’t suppose I need to include a library? Looking through the docs and other posts, it seems the photon should be able to handle this natively, but I thought I would check just in case.
It’s not the Particle drivers you need to worry about.
Some other driver seems to be grabbing the Photon before Windows’ own USB HID drivers can get hold of the device.
I think it may have been something in the particle drivers.
To fix the issue, I had to go to:
Device manager >
Ports (com and lpt)>
Photon>
Right click-> properties >
Driver >
Uninstall device
Then plug the unit back in and let windows find it and reinstall it. After that it came up and worked perfectly.