Skip to content

Cannot set the delay sent between items in queue.  #4

@bobsupercow

Description

@bobsupercow

Currently using the library, we are unable to set the delay used between items in the queue as they are processed.
Using the following code actually results in repeated input of the keycode instead of a single instance each second as expected. Perhaps the delay between queue items is to short for the host to recognize, but it isn't tunable externally to verify via testing.

delay(1000);
bluemicro_hid.keyboardReport(0, keycode);
bluemicro_hid.keyboardRelease();
bluemicro_hid.processQueues(CONNECTION_MODE_USB_ONLY);

Using the following code, which is essentially inserting a false delay and processing the input and release separately, works as expected, with a single keypress processed each second.

delay(1000);
bluemicro_hid.keyboardReport(0, keycode);
bluemicro_hid.processQueues(CONNECTION_MODE_USB_ONLY);
delay(10);
bluemicro_hid.keyboardRelease();
bluemicro_hid.processQueues(CONNECTION_MODE_USB_ONLY);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions