Compiling Issue (parsing error)

Recently I’ve built a shield for esp8266 and I want to build a binary file that already has the usermod and the gpio number ready to upload. I know that’s there are the srg repository but i’m an hobbist and I’d like to learn from my project.
I got this error when i’m tryng to compile with usermode in platformio_override.ini

the error is this:

InvalidProjectConfError: Invalid 'platformio_override.ini' (project configuration file): 'Source contains parsing errors: 'platformio_override.ini'
        [line 18]: '-D WLED_DISABLE_OTA\n'
        [line 19]: '-D WLED_DISABLE_ALEXA\n'
        [line 20]: '-D WLED_DISABLE_HUESYNC\n'
        [line 23]: '-D USERMOD_MODE_SORT\n''

this is how I compile the file

[platformio]
default_envs = d1_mini

[env:d1_mini]
board = d1_mini
platform = ${common.platform_wled_default}
platform_packages = ${common.platform_packages}
upload_speed = 921600
board_build.ldscript = ${common.ldscript_4m1m}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp8266}
-D WLED_DISABLE_OTA
-D WLED_DISABLE_ALEXA
-D WLED_DISABLE_HUESYNC
-D LEDPIN=2
-D RLYPIN=15
-D USERMOD_MODE_SORT
-D USERMOD_FOUR_LINE_DISPLAY -D FLD_PIN_SCL=5 -D FLD_PIN_SDA=4
-D USERMOD_ROTARY_ENCODER_UI -D ENCODER_DT_PIN=12 -D ENCODER_CLK_PIN=14 -D ENCODER_SW_PIN=13
-D USERMOD_AUTO_SAVE -D AUTOSAVE_PRESET_NUM=1
monitor_filters = esp8266_exception_decoder


lib_deps = ${esp8266.lib_deps}
    fastled/FastLED @ 3.3.2
    NeoPixelBus @ 2.6.0
    ESPAsyncTCP @ 1.2.0
    ESPAsyncUDP
    AsyncTCP @ 1.0.3
    IRremoteESP8266 @ 2.7.3
    https://github.com/lorol/LITTLEFS.git
    https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.0
    U8g2@~2.27.2
    Wire

anyone got this error? how I can solve it?

I think you may have to indent the lines starting with “-D”. Like this.

  -D WLED_DISABLE_OTA
  -D WLED_DISABLE_ALEXA
  -D WLED_DISABLE_HUESYNC
  -D LEDPIN=2
  -D RLYPIN=15
  -D USERMOD_MODE_SORT
  -D USERMOD_FOUR_LINE_DISPLAY -D FLD_PIN_SCL=5 -D FLD_PIN_SDA=4
  -D USERMOD_ROTARY_ENCODER_UI -D ENCODER_DT_PIN=12 -D ENCODER_CLK_PIN=14 -D ENCODER_SW_PIN=13
  -D USERMOD_AUTO_SAVE -D AUTOSAVE_PRESET_NUM=1
monitor_filters = esp8266_exception_decoder
1 Like

Thank you, just tried but got 81 problems, and the build process always fail


      |                         ^~~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:58,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\alexa.cpp:1:
.pio\libdeps\d1_mini\FastLED/colorutils.h: In constructor 'CRGBPalette32::CRGBPalette32(const CRGB*)':
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: In member function 'void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writePixels(PixelController<RGB_ORDER>)':
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:332:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  332 |   register data_ptr_t datapin = FastPin<DATA_PIN>::port();
      |                       ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:335:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  335 |    register clock_ptr_t clockpin = FastPin<CLOCK_PIN>::port();
      |                         ^~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: In member function 'void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writePixels(PixelController<RGB_ORDER>)':
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:332:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  332 |   register data_ptr_t datapin = FastPin<DATA_PIN>::port();
      |                       ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:338:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  338 |    register data_t datahi = FastPin<DATA_PIN>::hival();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:339:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  339 |    register data_t datalo = FastPin<DATA_PIN>::loval();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:335:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  335 |    register clock_ptr_t clockpin = FastPin<CLOCK_PIN>::port();
      |                         ^~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:340:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  340 |    register clock_t clockhi = FastPin<CLOCK_PIN>::hival();
      |                     ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:338:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  338 |    register data_t datahi = FastPin<DATA_PIN>::hival();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:341:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  341 |    register clock_t clocklo = FastPin<CLOCK_PIN>::loval();
      |                     ^~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:66,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\alexa.cpp:1:
.pio\libdeps\d1_mini\FastLED/chipsets.h: At global scope:
.pio\libdeps\d1_mini\FastLED/chipsets.h:87:80: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   87 |   __attribute__((always_inline)) inline static uint8_t adjust(register uint8_t data) { return ((data>>1) | 0x80) + ((data && (data<254)) & 0x01); }
      |                                                                                ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:339:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  339 |    register data_t datalo = FastPin<DATA_PIN>::loval();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:340:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  340 |    register clock_t clockhi = FastPin<CLOCK_PIN>::hival();
      |                     ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:341:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  341 |    register clock_t clocklo = FastPin<CLOCK_PIN>::loval();
      |                     ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:356:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  356 |    register data_t datahi_clockhi = FastPin<DATA_PIN>::hival() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:357:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  357 |    register data_t datalo_clockhi = FastPin<DATA_PIN>::loval() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:358:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  358 |    register data_t datahi_clocklo = FastPin<DATA_PIN>::hival() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:356:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  356 |    register data_t datahi_clockhi = FastPin<DATA_PIN>::hival() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:357:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  357 |    register data_t datalo_clockhi = FastPin<DATA_PIN>::loval() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:359:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  359 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:358:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  358 |    register data_t datahi_clocklo = FastPin<DATA_PIN>::hival() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:359:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  359 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:66,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\button.cpp:1:
.pio\libdeps\d1_mini\FastLED/chipsets.h: At global scope:
.pio\libdeps\d1_mini\FastLED/chipsets.h:87:80: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   87 |   __attribute__((always_inline)) inline static uint8_t adjust(register uint8_t data) { return ((data>>1) | 0x80) + ((data && (data<254)) & 0x01); }
      |                                                                                ^~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'virtual void LPD6803Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:175:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  175 |             register uint16_t command;
      |                               ^~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:66,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\cfg.cpp:1:
.pio\libdeps\d1_mini\FastLED/chipsets.h: At global scope:
.pio\libdeps\d1_mini\FastLED/chipsets.h:87:80: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   87 |   __attribute__((always_inline)) inline static uint8_t adjust(register uint8_t data) { return ((data>>1) | 0x80) + ((data && (data<254)) & 0x01); }
      |                                                                                ^~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'virtual void LPD6803Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:175:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  175 |             register uint16_t command;
      |                               ^~~~~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'virtual void LPD6803Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:175:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  175 |             register uint16_t command;
      |                               ^~~~~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::writeLed(uint8_t, uint8_t, uint8_t)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:351:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  351 |   register uint8_t top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
      |                    ^~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::writeLed(uint8_t, uint8_t, uint8_t)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:351:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  351 |   register uint8_t top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
      |                    ^~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::writeLed(uint8_t, uint8_t, uint8_t)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:351:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  351 |   register uint8_t top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
      |                                                             ^
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:338:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  338 |    register data_t datahi = FastPin<DATA_PIN>::hival();
      |                    ^~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/controller.h:9,
                 from .pio\libdeps\d1_mini\FastLED/FastLED.h:47,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\cfg.cpp:1:
.pio\libdeps\d1_mini\FastLED/pixeltypes.h:90:8: note: 'struct CRGB' declared here
   90 | struct CRGB {
      |        ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:339:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  339 |    register data_t datalo = FastPin<DATA_PIN>::loval();
      |                    ^~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:58,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\button.cpp:1:
.pio\libdeps\d1_mini\FastLED/colorutils.h: In member function 'CRGBPalette256& CRGBPalette256::operator=(const CRGB*)':
.pio\libdeps\d1_mini\FastLED/colorutils.h:1338:61: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct CRGB' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
 1338 |         memmove8( &(entries[0]), &(rhs[0]), sizeof( entries));
      |                                                             ^
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:58,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\cfg.cpp:1:
.pio\libdeps\d1_mini\FastLED/colorutils.h: In member function 'CRGBPalette256& CRGBPalette256::operator=(const CRGBPalette256&)':
.pio\libdeps\d1_mini\FastLED/colorutils.h:1333:69: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct CRGB' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
 1333 |         memmove8( &(entries[0]), &(rhs.entries[0]), sizeof( entries));
      |                                                                     ^
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:340:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  340 |    register clock_t clockhi = FastPin<CLOCK_PIN>::hival();
      |                     ^~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/fastspi.h:9,
                 from .pio\libdeps\d1_mini\FastLED/FastLED.h:65,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\alexa.cpp:1:
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: At global scope:
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:261:55: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  261 |  template <class D> void writeBytes(register uint8_t *data, int len) {
      |                                                       ^~~~
In file included from .pio\libdeps\d1_mini\FastLED/controller.h:9,
                 from .pio\libdeps\d1_mini\FastLED/FastLED.h:47,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\button.cpp:1:
.pio\libdeps\d1_mini\FastLED/pixeltypes.h:90:8: note: 'struct CRGB' declared here
   90 | struct CRGB {
      |        ^~~~
In file included from .pio\libdeps\d1_mini\FastLED/controller.h:9,
                 from .pio\libdeps\d1_mini\FastLED/FastLED.h:47,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\cfg.cpp:1:
.pio\libdeps\d1_mini\FastLED/pixeltypes.h:90:8: note: 'struct CRGB' declared here
   90 | struct CRGB {
      |        ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:306:36: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  306 |  void writeBytes(register uint8_t *data, int len) { writeBytes<DATA_NOP>(data, len); }
      |                                    ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:341:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  341 |    register clock_t clocklo = FastPin<CLOCK_PIN>::loval();
      |                     ^~~~~~~
~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:66,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\FX_fcn.cpp:26:
.pio\libdeps\d1_mini\FastLED/chipsets.h: At global scope:
.pio\libdeps\d1_mini\FastLED/chipsets.h:87:80: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   87 |   __attribute__((always_inline)) inline static uint8_t adjust(register uint8_t data) { return ((data>>1) | 0x80) + ((data && (data<254)) & 0x01); }
      |                                                                                ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: In static member function 'static void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writeBytesValueRaw(uint8_t, int)':
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:231:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  231 |   register data_ptr_t datapin = FastPin<DATA_PIN>::port();
      |                       ^~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/fastspi.h:9,
                 from .pio\libdeps\d1_mini\FastLED/FastLED.h:65,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\cfg.cpp:1:
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: At global scope:
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:261:55: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  261 |  template <class D> void writeBytes(register uint8_t *data, int len) {
      |                                                       ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:250:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  250 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:306:36: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  306 |  void writeBytes(register uint8_t *data, int len) { writeBytes<DATA_NOP>(data, len); }
      |                                    ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:236:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  236 |    register clock_ptr_t clockpin = FastPin<CLOCK_PIN>::port();
      |                         ^~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: In member function 'void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writeBytes(uint8_t*, int)':
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:269:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  269 |   register clock_ptr_t clockpin = FastPin<CLOCK_PIN>::port();
      |                        ^~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:237:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]

      |                     ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:289:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  289 |    register data_t datalo_clockhi = FastPin<DATA_PIN>::loval() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:289:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  289 |    register data_t datalo_clockhi = FastPin<DATA_PIN>::loval() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:290:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  290 |    register data_t datahi_clocklo = FastPin<DATA_PIN>::hival() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:290:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  290 |    register data_t datahi_clocklo = FastPin<DATA_PIN>::hival() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:356:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  356 |    register data_t datahi_clockhi = FastPin<DATA_PIN>::hival() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:357:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  357 |    register data_t datalo_clockhi = FastPin<DATA_PIN>::loval() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:291:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  291 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:358:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  358 |    register data_t datahi_clocklo = FastPin<DATA_PIN>::hival() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:291:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  291 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:359:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  359 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: In member function 'void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writePixels(PixelController<RGB_ORDER>)':
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:332:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  332 |   register data_ptr_t datapin = FastPin<DATA_PIN>::port();
      |                       ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:335:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  335 |    register clock_ptr_t clockpin = FastPin<CLOCK_PIN>::port();
      |                         ^~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h: In member function 'void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writePixels(PixelController<RGB_ORDER>)':
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:332:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  332 |   register data_ptr_t datapin = FastPin<DATA_PIN>::port();
      |                       ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:338:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  338 |    register data_t datahi = FastPin<DATA_PIN>::hival();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:339:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  339 |    register data_t datalo = FastPin<DATA_PIN>::loval();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:335:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  335 |    register clock_ptr_t clockpin = FastPin<CLOCK_PIN>::port();
      |                         ^~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:340:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  340 |    register clock_t clockhi = FastPin<CLOCK_PIN>::hival();
      |                     ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:338:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  338 |    register data_t datahi = FastPin<DATA_PIN>::hival();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:341:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  341 |    register clock_t clocklo = FastPin<CLOCK_PIN>::loval();
      |                     ^~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:66,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\alexa.cpp:1:
.pio\libdeps\d1_mini\FastLED/chipsets.h: At global scope:
.pio\libdeps\d1_mini\FastLED/chipsets.h:87:80: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   87 |   __attribute__((always_inline)) inline static uint8_t adjust(register uint8_t data) { return ((data>>1) | 0x80) + ((data && (data<254)) & 0x01); }
      |                                                                                ^~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:339:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  339 |    register data_t datalo = FastPin<DATA_PIN>::loval();
      |                    ^~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:340:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  340 |    register clock_t clockhi = FastPin<CLOCK_PIN>::hival();
      |                     ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:341:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  341 |    register clock_t clocklo = FastPin<CLOCK_PIN>::loval();
      |                     ^~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:356:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  356 |    register data_t datahi_clockhi = FastPin<DATA_PIN>::hival() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:357:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  357 |    register data_t datalo_clockhi = FastPin<DATA_PIN>::loval() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:358:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  358 |    register data_t datahi_clocklo = FastPin<DATA_PIN>::hival() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:356:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  356 |    register data_t datahi_clockhi = FastPin<DATA_PIN>::hival() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:357:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  357 |    register data_t datalo_clockhi = FastPin<DATA_PIN>::loval() | FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:359:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  359 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:358:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  358 |    register data_t datahi_clocklo = FastPin<DATA_PIN>::hival() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
.pio\libdeps\d1_mini\FastLED/fastspi_bitbang.h:359:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  359 |    register data_t datalo_clocklo = FastPin<DATA_PIN>::loval() & ~FastPin<CLOCK_PIN>::mask();
      |                    ^~~~~~~~~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:66,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\button.cpp:1:
.pio\libdeps\d1_mini\FastLED/chipsets.h: At global scope:
.pio\libdeps\d1_mini\FastLED/chipsets.h:87:80: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   87 |   __attribute__((always_inline)) inline static uint8_t adjust(register uint8_t data) { return ((data>>1) | 0x80) + ((data && (data<254)) & 0x01); }
      |                                                                                ^~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'virtual void LPD6803Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:175:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  175 |             register uint16_t command;
      |                               ^~~~~~~
In file included from .pio\libdeps\d1_mini\FastLED/FastLED.h:66,
                 from wled00\FX.h:36,
                 from wled00\fcn_declare.h:143,
                 from wled00\wled.h:177,
                 from wled00\cfg.cpp:1:
.pio\libdeps\d1_mini\FastLED/chipsets.h: At global scope:
.pio\libdeps\d1_mini\FastLED/chipsets.h:87:80: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   87 |   __attribute__((always_inline)) inline static uint8_t adjust(register uint8_t data) { return ((data>>1) | 0x80) + ((data && (data<254)) & 0x01); }
      |                                                                                ^~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'virtual void LPD6803Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:175:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  175 |             register uint16_t command;
      |                               ^~~~~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'virtual void LPD6803Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:175:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  175 |             register uint16_t command;
      |                               ^~~~~~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::writeLed(uint8_t, uint8_t, uint8_t)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:351:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  351 |   register uint8_t top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
      |                    ^~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::writeLed(uint8_t, uint8_t, uint8_t)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:351:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  351 |   register uint8_t top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
      |                    ^~~
.pio\libdeps\d1_mini\FastLED/chipsets.h: In member function 'void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::writeLed(uint8_t, uint8_t, uint8_t)':
.pio\libdeps\d1_mini\FastLED/chipsets.h:351:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  351 |   register uint8_t top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
      |                    ^~~```



and then

Judging by v13.0.b6 platformio.ini, and this bit in the file.:

[env:wemos_shield_esp32]
board = esp32dev
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
upload_speed = 460800
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp32}
  -D LEDPIN=16
  -D RLYPIN=19
  -D BTNPIN=17
  -D IRPIN=18
  -D UWLED_USE_MY_CONFIG
  -D USERMOD_DALLASTEMPERATURE
  -D USERMOD_FOUR_LINE_DISPLAY
  -D TEMPERATURE_PIN=23
  -D USE_ALT_DISPlAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI
  -D USERMOD_AUDIOREACTIVE
lib_deps = ${esp32.lib_deps}
  OneWire@~2.3.5
  olikraus/U8g2 @ ^2.28.8
  https://github.com/blazoncek/arduinoFFT.git
board_build.partitions = ${esp32.default_partitions}

Maybe that All pin configurations starting with “-D” all so go on there own line.

I’m not A programmer by trade, so I could be wrong. Just being logical.

1 Like

And I’m not sure that it’s necessary to add :

    fastled/FastLED @ 3.3.2
    NeoPixelBus @ 2.6.0
    ESPAsyncTCP @ 1.2.0
    ESPAsyncUDP
    AsyncTCP @ 1.0.3
    IRremoteESP8266 @ 2.7.3

to the " lib_deps = ${esp8266.lib_deps} line.

I believe that they are all ready baked in. unless you need a specific version. which would need to be reflected in the WLed main code as well.

1 Like

One more thing I noticed is you are trying add " LITTLEFS" to a esp8266.

I don’t think that will work as that library is for a esp32.
See: GitHub - lorol/LITTLEFS: LittleFS library for arduino-esp32

HI Akriss and thank you for the support but I’m a really noob with compiling and I don’t know exactly what to do.
I simply try to compile with the instruction written in GitHub WLED source code.

What I have added in platformio override is the code that you can find under usermode rotary encoder and in that folder there’s a file named platformio override example.

Thank you

Have you tried the WLED compile helper? https://wled-compile.github.io/

This helps me when I’m trying to figure out what I’m doing.

Adding usermods is a pain for me as well as a novice. Is see that there may be changes in the works to make it easier. But till then we novice’s need to read a lot to figure it out.

Sorry I can’t help more.

1 Like

All so I think I’m wrong on “LITTLEFS”.

As I see it mentioned on that page I linked that there is a LittleFS for esp2866.