-
Notifications
You must be signed in to change notification settings - Fork 528
Description
I'm running on an ESP32 Dev board connected by BT to a Windpws 11 PC being fed characters into the app Notepad++ as a test.
I am programming and uploading using the Arduino IDE.
I have two buttons whose low transition is attached to an interrupt, whose ISR is:
void do_Key1() {
detachInterrupt(Key1);
Key1Pressed = true;
}
Loop interrogates variable Key1Pressed:
if (Key1Pressed) {
Key1Pressed = false;
bleKeyboard.print("123456789A12345678");
attachInterrupt(Key1, do_Key1, FALLING);
}
This all works fine as long as the character array being sent is less than 17 characters.
After that it becomes unreliable and the longer, the more unreliable.
What's received is either truncated and/or the last character is repeated enlessly:
123456789A1234566666666666666666666666666666
If I press the key again the repetition is stopped.
bleKeyboard.setDelay() doesn't help.
Any thoughts?