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?