I'm using this code to use leonardo as keyboard:
void setup() {
Keyboard.begin();
}
void loop() {
delay(1000);
Keyboard.press(KEY_F2);
delay(100);
Keyboard.releaseAll();
delay(1000);
}
But it fails to send keys when the computer is booting. On windows it works.
Is there a way to set arduino leonardo as a real keyboard?
Edit 1:
I try with other machine and it works. I Guess this problem is pointed on this question Arduino PS/2 Keyboard Emulator Issues
Edit 2:
It fails on a PowerEdge R720 dell server.