🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack Env module example won't compile

    General
    2
    4
    7.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mawg
      last edited by

      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?

      ajb2k3A 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3 @mawg
        last edited by

        @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.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 1
        • M
          mawg
          last edited by

          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

          ajb2k3A 1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3 @mawg
            last edited by

            @mawg Glad I can help.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 1
            • First post
              Last post