Lib_deps doesn't work

INI:

[env:wemos_d1_mini32]

platform = espressif32

board = wemos_d1_mini32

framework = arduino

lib_deps =

    Arduino

    Wire

    SPI

    Adafruit_Sensor

    Adafruit_GFX

    Adafruit_SSD1306

It’s frustrating, because it usually works once.

I think, you have too many threads open, covering much the same problems, and you are missing replies.

This:

Is a reply to you from @pfeerick, telling you that you have errored in your library names.

The Adafruit libraries haveva space, not an underscore.

“Adafruit Sensor”, “Adafruit GFX”, “Adafruit SSD1306”.

Cheers,
Norm.

1 Like

I know about time.

Oh. A space. Thank you.

And, use double quotes, not angle brackets around the header file names. These library headers are local, not system - different paths, usually.

That might explain why they are “not found” when you can actually see them.

Cheers,
Norm.

2 Likes

Don’t include Arduion, Wire or SPI in lib_deps - they are part of the Arduino framework - and should not be ‘managed’ in any way as a library.

You don’t need Adafruit GFX Library if you are using Adafruit SSD1306 as it is an automatically installed dependency (but it won’t hurt anything if you do explicitly list it). Just as with the Adafruit BME280 Library (really Adafruit? we know it’s a library!! Good on you for the inconsistent naming though! :man_facepalming: ) you don’t need Adafruit Unified Sensor. In other words, this is all you should have needed for that particular project:

lib_deps =
   Adafruit SSD1306
   Adafruit BME280 Library

If you are ever unsure as to what exactly the library is called, look up the library in the registry, and see what the examples look like on the ‘installation’ tab. e.g.

1 Like