It also explains the other line I didn't understand, as the value got squashed afterwards :
Code: Select all
buf[0] = 0x01 # Keyboard
Code: Select all
buf[0] = 0x01 # Keyboard
I was referring to my home PC, which had decided once and for all my pyboard was a mouse, despite dozens of pyb.usb_mode calls top the contrary, and was silently discarding the data I sent it because they were not mouse reportsdhylands wrote:I'm not sure what the Windows issue would be.
Calling pyb.usb_mode only does actual USB configuration the first time its called. After that, it skips all of the USB initialization and just stashes away the hid= parameter which would in effect wind up changing the first byte when you send the hid data.
Ouch... I don't do Githubdhylands wrote: The documentation is all stored in the doc tree of the micropython repository, so updating the documentation is done as a PR just like modifying the code.
There is a good old wiki too. It's on github.fpp wrote:Strange to place such hurdles against community contributions... whatever happened to good old Wikis ?