user19257: 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?


user4143: The Keyboard library is for Arduino ATMega32U4 based Arduinos (and other similar ones with USB) only. The ESP8266 does not have USB, so how can it possibly use the Keyboard library?

19257: <p>OS: Mac
Arduino: 1.8.13
Keyboard Library: 1.0.2</p>
<p><a href="https://i.stack.imgur.com/aMsjO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aMsjO.jpg" alt="ESP8266" /></a></p>
<p>I have a generic ESP8266 board, and I have the following code</p>
<pre><code>void setup() {
  // put your setup code here, to run once:
  pinMode(LED_BUILTIN, OUTPUT);
  Keyboard.begin();
}

void loop() {}
</code></pre>
<p>However I get the following ouput:</p>
<blockquote>
<p>In file included from /Users/quba/Sandbox/sketch_feb07a/sketch_feb07a.ino:1:0:<br/>
/Applications/Arduino.app/Contents/Java/libraries/Keyboard/src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory<br/>
#include &quot;HID.h&quot;<br/>
                          ^<br/>
compilation terminated.<br/>
exit status 1<br/>
Error compiling for board Generic ESP8266 Module.<br/>
Could not find boards.txt in /Users/quba/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7. Is it pre-1.5?</p>
</blockquote>
 4143: <p>The Keyboard library is for Arduino ATMega32U4 based Arduinos (and other similar ones with USB) only. The ESP8266 does not have USB, so how can it possibly use the Keyboard library?</p>
