Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: joedodo on Jan 17, 2018, 03:47 am

Title: leonardo micro changing usb polling rate
Post by: joedodo on Jan 17, 2018, 03:47 am
I want to make a mouse using leonardo or micro. I haven't received any of them, yet. I believe the default polling rate (the rate it reports data to pc via usb) is 125Hz. Is there a way to change  this number?
Title: Re: leonardo micro changing usb polling rate
Post by: Robin2 on Jan 17, 2018, 11:33 am
The source code for all of the Arduino libraries is included in the Arduino IDE.

...R
Title: Re: leonardo micro changing usb polling rate
Post by: joedodo on Jan 17, 2018, 02:05 pm
So go to the library of the mouse, and edit with some ide and create a new one for my use? Just as simple as that? I thought it would require some in depth knowledge of the usb protocol. Thanks, will have a look at that.
Title: Re: leonardo micro changing usb polling rate
Post by: Robin2 on Jan 17, 2018, 03:12 pm
Just as simple as that? I thought it would require some in depth knowledge of the usb protocol.
I have no idea. But it is worth investigating the simple options first.

...R
Title: Re: leonardo micro changing usb polling rate
Post by: Paul_KD7HB on Feb 01, 2018, 10:45 pm
So go to the library of the mouse, and edit with some ide and create a new one for my use? Just as simple as that? I thought it would require some in depth knowledge of the usb protocol. Thanks, will have a look at that.
The serial data bytes ride on top of the USB protocol bytes.

Paul