Some time ago I’ve written a program which included the Keyboard Library, entering characters onto my screen as if it was a keyboard.
This worked fine but the main program needed some revisions which took some time and therefore the project was put aside for a while.
Recently I picked up that project and I rewrote a huge part of the code as a new project while implementing the Keyboard function, for that part worked nicely.
But as soon as I implemented that small piece of code, the compiler gave an error telling me the #include <Keyboard.h> was not fitted in the code. Which was most certainly there!
I deleted this line of code and selected the keyboard library again. (which only gave back the exact line of code)
This had no success at all. I upgraded to 1.8.13 without any result.
Even the keyboard.h example code did not work.
I adjusted the type of board to Nano, which I had not done so far in this “new” project, but still no luck.
Even the old code, which I still had, gave that same error trying to compile it.
What is it, I’m missing here?
The only difference is that I have no Arduino attached yet. But I cannot see that as a problem while compiling.
The weird thing is that in the test code, a remark is mentioned that <keyboard.h> is only supported for a very small number of boards. While I had the Nano working fine with that function.
Hence, I choose the Nano, especially for that keyboard option.
Anyone on this??