Skip to main content
Arduino

Return to Question

Added a picture
Source Link
Quintin B
  • 162
  • 1
  • 8

OS: Mac Arduino: 1.8.13 Keyboard Library: 1.0.2

ESP8266

I have a generic ESP8266 board, and I have the following code

void setup() {
 // put your setup code here, to run once:
 pinMode(LED_BUILTIN, OUTPUT);
 Keyboard.begin();
}
void loop() {}

However I get the following ouput:

In file included from /Users/quba/Sandbox/sketch_feb07a/sketch_feb07a.ino:1:0:
/Applications/Arduino.app/Contents/Java/libraries/Keyboard/src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory
#include "HID.h"
^
compilation terminated.
exit status 1
Error compiling for board Generic ESP8266 Module.
Could not find boards.txt in /Users/quba/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7. Is it pre-1.5?

OS: Mac Arduino: 1.8.13 Keyboard Library: 1.0.2

I have a generic ESP8266 board, and I have the following code

void setup() {
 // put your setup code here, to run once:
 pinMode(LED_BUILTIN, OUTPUT);
 Keyboard.begin();
}
void loop() {}

However I get the following ouput:

In file included from /Users/quba/Sandbox/sketch_feb07a/sketch_feb07a.ino:1:0:
/Applications/Arduino.app/Contents/Java/libraries/Keyboard/src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory
#include "HID.h"
^
compilation terminated.
exit status 1
Error compiling for board Generic ESP8266 Module.
Could not find boards.txt in /Users/quba/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7. Is it pre-1.5?

OS: Mac Arduino: 1.8.13 Keyboard Library: 1.0.2

ESP8266

I have a generic ESP8266 board, and I have the following code

void setup() {
 // put your setup code here, to run once:
 pinMode(LED_BUILTIN, OUTPUT);
 Keyboard.begin();
}
void loop() {}

However I get the following ouput:

In file included from /Users/quba/Sandbox/sketch_feb07a/sketch_feb07a.ino:1:0:
/Applications/Arduino.app/Contents/Java/libraries/Keyboard/src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory
#include "HID.h"
^
compilation terminated.
exit status 1
Error compiling for board Generic ESP8266 Module.
Could not find boards.txt in /Users/quba/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7. Is it pre-1.5?

Source Link
Quintin B
  • 162
  • 1
  • 8

ESP8266: #include <Keyboard.h> causes fatal error: HID.h: No such file or directory

OS: Mac Arduino: 1.8.13 Keyboard Library: 1.0.2

I have a generic ESP8266 board, and I have the following code

void setup() {
 // put your setup code here, to run once:
 pinMode(LED_BUILTIN, OUTPUT);
 Keyboard.begin();
}
void loop() {}

However I get the following ouput:

In file included from /Users/quba/Sandbox/sketch_feb07a/sketch_feb07a.ino:1:0:
/Applications/Arduino.app/Contents/Java/libraries/Keyboard/src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory
#include "HID.h"
^
compilation terminated.
exit status 1
Error compiling for board Generic ESP8266 Module.
Could not find boards.txt in /Users/quba/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7. Is it pre-1.5?

AltStyle によって変換されたページ (->オリジナル) /