Port a project from raspberrypi pico to esp32 wemos_d1_mini32

I ran into the problem, that the library PluggableUSBHID.h used in CRSFJoystick does not support my ESP8266 board. At least I think that is the problem, because the project builds for the predefined boards, but not my own board. Here is how I added my board to the existing ones:

[env:pico]
platform = raspberrypi
board = pico
framework = arduino
lib_deps =
fastled/FastLED@^3.6.0
adafruit/Adafruit NeoPixel@^1.11.0
build_flags = -DBOARD_ID=1
monitor_speed = 115200

[env:wemos_d1_mini32]
platform = espressif32
board = wemos_d1_mini32
framework = arduino
lib_deps =
fastled/FastLED@^3.6.0
adafruit/Adafruit NeoPixel@^1.11.0
build_flags = -DBOARD_ID=5
monitor_speed = 115200

It is my first time using platformio and I read somewhere that it is easy to port projects to other devices. How would I go on about porting this project to the ESP8266 board that I have at home?

There are two conflicting infos here: The title says ESP32, the text says ESP8266.

And neither of those have native USB support to create a USB HID device. Only newer ESP32 variants, like ESP32-S2 and S3 do. (source).

“Easy Porting” can really only be done when both have the needed hardware blocks (or software workarounds), and easily comparable libraries and APIs. The regular ESP32 and ESP8266 has no equivalent for a Pico’s USB perpiheral.

I see, thanks a lot!
I will buy the correct board then.