Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay in press() function #280

Open
Spyby123 opened this issue Jan 19, 2024 · 0 comments
Open

Delay in press() function #280

Spyby123 opened this issue Jan 19, 2024 · 0 comments

Comments

@Spyby123
Copy link

I want to control 3-Axis CNC Machine over BLE with several Buttons. When i hold the Button down, the ESP should act like the asssigned Key gets pressed repeatedly, just like when you hold down a key on a normal keyboard.
I think the BleKeyboard.press('x') is the right function.
But as the CNC-programm running on my Laptop can't handle the inputs if they are to fast i need a delay between the keypresses.
How can i implement it, perhaps in the .h or .cpp file?
Sorry for asking, im a ESP32/Arduino beginner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant