I am trying to use keyboard on my Arduino nano, but i get this error:
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
As per the answer in Keyboard.h not found, I tried change the board to Arduino Leonardo, even though the script gets compiled it doesn't get uploaded (keeps on saying uploading for a long time).
This is the code I use:
#include <Keyboard.h>
void setup() {
Keyboard.begin();
}
void loop() {
}