Hello,
I just imported this class
#include <USBHIDMouse.h>
on VSCode Platformio in project with these settings:
[env:featheresp32]
platform = espressif32
board = featheresp32
framework = arduino
monitor_speed = 115200
lib_deps =
adafruit/Adafruit GFX Library@^1.10.13
paulstoffregen/Encoder@^1.4.1
adafruit/Adafruit BusIO@^1.11.2
thomasfredericks/Bounce2@^2.71
but when I declare a new istance of mouse:
USBHIDMouse Mouse;
it says that identifier is undefined. Why? Is one settings missing?
Thank you!
Cannot use USBHIDMouse.h
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- maverickk89
- Posts: 5
- Joined: Tue Jan 24, 2023 5:10 pm
Re: Cannot use USBHIDMouse.h
I found answer myself, ESP32 Huzzah does not support HID like Mouse and Keyboard, the only solution is to move to ESP32-S2 or ESP32-S3 or others where it is supported. My need is a device with HID, BT and battery charge, so I am going to use ESP32-S3 model like https://learn.adafruit.com/adafruit-esp32-s3-feather
Please be positive and constructive with your questions and comments.