TheDIYGuy999 / Rc_Engine_Sound_ESP32

Allows to play vehicle engine sounds on an ESP32. Additional sounds can play in parallel with the engine sound! Controls your lights as well. compatible with SBUS, IBUS, PWM, PPM and SUMD signals.
https://www.youtube.com/watch?v=s93yAAmEtbM&t=3s
308 stars 121 forks source link

Cannot get it to compile on platform.io #32

Closed sascha-schieferdecker closed 2 years ago

sascha-schieferdecker commented 2 years ago

Problem seem to be related to FASTLED and fastpin:

define _FL_DEFPIN(PIN) template <> class FastPin : public _ESPPIN<PIN, ((uint32_t)1 << (PIN % 32)), _FL_PIN_VALID(PIN)> {};

                                                                                                                         ^

.pio\libdeps\esp32dev\FastLED\src/platforms/esp/32/fastpin_esp32.h:154:17: note: in expansion of macro '_FL_DEFPIN' _FL_DEFPIN(56); _FL_DEFPIN(57); _FL_DEFPIN(58); _FL_DEFPIN(59); ^ .pio\libdeps\esp32dev\FastLED\src\platforms/esp/32/fastpin_esp32.h:136:125: error: template argument 3 is invalid

define _FL_DEFPIN(PIN) template <> class FastPin : public _ESPPIN<PIN, ((uint32_t)1 << (PIN % 32)), _FL_PIN_VALID(PIN)> {};

....

There are many more compiler errors like that. Is this a known problem?

sascha-schieferdecker commented 2 years ago

Well, for anyone else stumbling across this problem, I could get a build if not using FASTLED 3.4.0, but 3.3.3.

I modified the platformio.ini like this:

lib_deps =
    SPI
    https://github.com/TheDIYGuy999/statusLED
    https://github.com/TheDIYGuy999/SBUS
    https://github.com/TheDIYGuy999/rcTrigger
    https://github.com/bmellink/IBusBM
    https://github.com/Bodmer/TFT_eSPI
    https://github.com/FastLED/FastLED/archive/refs/tags/3.3.3.tar.gz
sascha-schieferdecker commented 2 years ago

Maybe the platformio.ino should have some version pinning in the lib_deps, so that only working versions are provided as dependency.

The issue can be closed.

TheDIYGuy999 commented 2 years ago

I added it in platformio.ini, but for me 3.4.0 is working as well