Hello everybody!
I having problems with my Arduino IDE, I’m trying to get my Arduino Leonardo to act as a HID keyboard but the Keyboard.begin and all other keyboard commands aren’t working.
Does anybody know how to help me out here?
Thanks in advanced!
Arduino: 1.6.7 (Windows 10), Board: "Arduino Leonardo"
C:\Users\user\Documents\Arduino\Leonardotest\Leonardotest.ino: In function 'void setup()':
Leonardotest:10: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.println("Hello World");
^
Leonardotest:15: error: 'KEY_BACKSPACE' was not declared in this scope
Keyboard.press(KEY_BACKSPACE);
^
Leonardotest:17: error: expected ';' before 'Keyboard'
Keyboard.releaseAll();
^
Leonardotest:19: error: a function-definition is not allowed here before '{' token
void loop() {
^
Leonardotest:22: error: expected '}' at end of input
}
^
exit status 1
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.