Adafruit neopixel multiple libraries glitch help

Hi @sthomas2025. The modern versions of the "Adafruit Neopixel" library have an incompatibility with older versions of the "esp8266" boards platform:

Unfortunately an outdated version of the "esp8266" platform is installed in Arduino Cloud, which causes this error when you attempt to compile any sketch that uses the Adafruit NeoPixel for an ESP8266 boards.

The easiest workaround will be to configure your sketch to use the last version of the Adafruit NeoPixel library from before the backwards incompatibility was introduced. I'll provide instructions you can follow to do that:

  1. Open your sketch in "Arduino Web Editor".
  2. From the menu on the left side of the "Arduino Web Editor" window, click "Libraries".
  3. Click the "LIBRARY MANAGER" button.
    The "Favorite the Contributed libraries you use the most" dialog will open.
  4. Type Adafruit NeoPixel in the "SEARCH LIBRARY" field.
  5. Find the "Adafruit NeoPixel" library in the search results.
  6. If the star to the right of the library is not already filled, click the star.
    This will add the library to your "Favorites" in "Arduino Web Editor".
  7. Click the "DONE" button.
    The "Favorite the Contributed libraries you use the most" dialog will close.
  8. From the Libraries panel of the "Arduino Web Editor" window, click the "FAVORITES" tab.
  9. Find the "Adafruit NeoPixel" library in the list of favorite libraries and hover the mouse pointer over its name.
    An "INCLUDE ▼" button will appear to the right side of the library name.
  10. Click the on the right side of the "INCLUDE ▼" button.
    A menu will open.
  11. Select "1.8.4" from the menu.

This configures the metadata of the currently opened sketch so that Arduino Cloud will always use version 1.8.4 of the Adafruit NeoPixel library when the sketch is compiled.

You should now be able to compile and upload your sketch without encountering that error.


:exclamation: The configuration is per-sketch, so you will need to repeat the above procedure for each sketch using the "Adafruit NeoPixel" library that you want to use with an ESP8266 board.


1 Like