M5Stack Env module example won't compile

  • With the Arduino IDE, I chose the M5Stack Env module example.

    It starts

     #include <M5Stack.h>
     #include "DHT12.h"
     #include <Wire.h> //The DHT12 uses I2C comunication.
     #include "Adafruit_Sensor.h"
     #include <Adafruit_BMP280.h>

    and teh compiler says

     Adafruit_BMP280.h: No such file or directory

    I imagijne that I am suposed to include soem library into the IDE(?), but am surpised when examples wil not compile out of the box.

    Any dea how I can build & run the example?

  • @mawg In arduino, tutorials assume you have these libraries already installed.

    In arduino click on Sketch,
    then click Include Library,
    Then Manage Librarys.

    Search for Adafruit_BMP280 and then click install.

  • Thanks a 1,000,000 I am new to ESP32 and to the Aruino IDE, so you just taught me a general solution. I really appreciate it

  • @mawg Glad I can help.