I have found similar posts on this topic however I have not came across the answer yet.
I am using an Arduino Nano ESP32 and the Keyboard library by Arduino.
Here is the code:
#include "keyboard.h"
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
And here is the full error message:
C:\Users\austi\OneDrive\Arduino\NanoESP32Testing\NanoESP32Testing.ino:1:10: fatal error: keyboard.h: No such file or directory
#include "keyboard.h"
^~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: keyboard.h: No such file or directory
I hope that this is sufficient information but if not please let me know.
#include "Keyboard.h"
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
In file included from C:\Users\austi\OneDrive\Arduino\NanoESP32Testing\NanoESP32Testing.ino:1:
c:\Users\austi\OneDrive\Arduino\libraries\Keyboard\src/Keyboard.h:25:10: fatal error: HID.h: No such file or directory
#include "HID.h"
^~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1