Page 1 of 1

How to make pyboard act as a USB HID device instead of USB CDC

Posted: Thu Feb 08, 2018 9:37 am
by ardian
Hi,

I have an question. how to modify port of Micropython for Pyboard v1.1 to make it act as an usb HID device without populating usb CDC. Basically i don't want to see any virtual COM/TTY devices. is there any easy way to do this? I tried to do it by myself, but without success - system wasn't been able to recognise pyboard at all.

Thanks,
ardian

Re: How to make pyboard act as a USB HID device instead of USB CDC

Posted: Fri Feb 09, 2018 9:55 am
by pythoncoder

Re: How to make pyboard act as a USB HID device instead of USB CDC

Posted: Fri Feb 09, 2018 6:18 pm
by fpp
Thanks Peter, you beat me to it :-)

Re: How to make pyboard act as a USB HID device instead of USB CDC

Posted: Sat Feb 10, 2018 1:18 am
by ardian
Thanks for your replies, but you misunderstood me,

I do not have any problems with sending data over hid. i'm using this code https://pastebin.com/4XpFzxfJ . The thing i want to do is get rid off the virtual com port/tty device from devices list. i Tried to play with [usb.c, usbd_cdc_interface.c, usbd_conf.c, usbd_desc.c] files, but i wasn't able to make it work. the best i've done is disable of the dataflow over this port, but it still were visible in devices list.

Thanks,
Ardian