Help

Hello,

I have my own arduino and Im trying to use keyboard commands but when I click on Verify it says "keyboard not found" can someone help me and heres the error message sketch_feb23a:3:1: error: 'Keyboard' not found. Does your sketch include the line '#include '? Keyboard.begin(); ^ exit status 1 'Keyboard' not found. Does your sketch include the line '#include '?

Well, does your sketch include the line #include and Keyboard.begin() ?

Please post the complete program here

void setup() { // put your setup code here, to run once:

include

Keyboard.begin(); Keyboard.write('A');

}

void loop() { // put your main code here, to run repeatedly:

}

that is the full code

Doesn't the include need to be in the space above setup()?

I just now tried that but it has the same error message.

The keyboard and mouse libraries only work on Arduinos with native USB support.

E.g. 32U4 based Leonardo, Micro. So the question is which Arduino you have?

I have the arduino/genuino uno

Nyan_cat_9808: I have the arduino/genuino uno

...and there you have your answer.

This generally goes at the top of the sketch, and not inside a function:

include