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

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
ardian
Posts: 2
Joined: Thu Feb 08, 2018 8:09 am

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

Post by ardian » Thu Feb 08, 2018 9:37 am

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

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

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

Post by pythoncoder » Fri Feb 09, 2018 9:55 am

Peter Hinch
Index to my micropython libraries.

fpp
Posts: 64
Joined: Wed Jul 20, 2016 12:08 pm

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

Post by fpp » Fri Feb 09, 2018 6:18 pm

Thanks Peter, you beat me to it :-)

ardian
Posts: 2
Joined: Thu Feb 08, 2018 8:09 am

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

Post by ardian » Sat Feb 10, 2018 1:18 am

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

Post Reply