I'm am trying to use the Circuit Playground Bluefruit with the native Keyboard.h library. However, when trying to compile the code for the Circuit Playground Bluefruit I get the following error:
Code: Select all
Arduino: 1.8.19 (Mac OS X), Board: "Adafruit Circuit Playground Bluefruit, S140 6.1.1, Level 0 (Release), Serial"
Multiple libraries were found for "Keyboard.h"
Used: /Users/matt/Documents/Arduino/libraries/Keyboard
Not used: /Applications/Arduino.app/Contents/Java/libraries/Keyboard
In file included from /Users/matt/Documents/Arduino/3602KeyboardDemo/3602KeyboardDemo.ino:1:
/Users/matt/Documents/Arduino/libraries/Keyboard/src/Keyboard.h:25:10: fatal error: HID.h: No such file or directory
25 | #include "HID.h"
| ^~~~~~~
compilation terminated.
exit status 1
Error compiling for board Adafruit Circuit Playground Bluefruit.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Code: Select all
#include <KeyboardLayout.h>
#include <Keyboard.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}