Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15598

Does your sketch include the line #include

$
0
0

So I just came back to Arduino and am having a problem with a library I'm trying to include.
Library is Keyboard.h
In preferences the path is set correctly,
arduino: nano
dir tree:
sketch_may26
|_ /libraries
|_ sketch_may26.ino

This is the code example (which is given within the library)

#include <Keyboard.h>

void setup() {
  Keyboard.begin();

}

void loop() {
}

Trying to compile it results in the following:

error: 'Keyboard' was not declared in this scope
Keyboard.begin();
^~~~~~~~

If verbose output is used while compiling this flag can be found

"-Ic:\\Users\\****\\Documents\\code\\arduino\\sketch_may26a\\libraries\\Keyboard\\src"

If anyone has any idea, need more info pleas.

Anyhow hava a good day :slight_smile:

6 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 15598

Latest Images

Trending Articles



Latest Images