earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 boards
GNU Lesser General Public License v2.1
1.88k stars 394 forks source link

Feature Request: Setting usb_hid_poll_interval in setup #2215

Closed JacTech closed 1 month ago

JacTech commented 1 month ago

I don't know if its possible but it would be cool, to be able to set the polling rate in setup. this way a setting could be loaded from EEPOM

earlephilhower commented 1 month ago

Already there, see https://github.com/earlephilhower/arduino-pico/pull/1771

JacTech commented 1 month ago

but this only works when i define it before void setup() tho. It would be cool it it could be defined in the setup

earlephilhower commented 1 month ago

Sorry, but that's not possible with the way things run now. By the time setup is called, USB is already running and can't be changed.

JacTech commented 1 month ago

i was kind of expecting that. thanks anyways :)