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.
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.