HID keyboard polling interval

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
seemefirst@gamil.com
Posts: 15
Joined: Mon Jul 08, 2019 9:15 pm

HID keyboard polling interval

Post by seemefirst@gamil.com » Fri Feb 21, 2020 4:07 pm

On stm32 port HID keyboard is slow. In current condition, you have to put at least 10ms delay before and after each characters to send out characters. In order to improve this I have reduced the polling interval from 8ms to 1ms and safely sent out characters with 2ms delays. This is 5 times faster. We can define something like MICROPY_HW_HID_POLLING_INTERVAL in mpconfigboard to add this.
What do you think?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: HID keyboard polling interval

Post by jimmo » Fri Feb 21, 2020 11:58 pm

Sounds good! Definitely worth sending a PR

seemefirst@gamil.com
Posts: 15
Joined: Mon Jul 08, 2019 9:15 pm

Re: HID keyboard polling interval

Post by seemefirst@gamil.com » Sat Feb 22, 2020 6:23 pm

sure.

Post Reply