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

    platformio error with M5.IMU.INIT

    M5Stack Fire
    2
    3
    5.6k
    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.
    • A
      amn
      last edited by

      hi report
      src\main.cpp: In function 'void setup()':
      src\main.cpp:71:6: error: 'class M5Stack' has no member named 'IMU'
      M5.IMU.Init();

      define PlatformIO:
      [env:m5stack-fire]
      platform = espressif32
      board = m5stack-fire
      framework = arduino
      lib_deps = M5Stack, Wire, SPI

      program work with arduino ide
      any idea ?
      thx

      amn

      1 Reply Last reply Reply Quote 0
      • m5stackM
        m5stack
        last edited by

        that is so weird. you could recreate the project. clone the m5stack library from Github to the project lib path then test it again.

        1 Reply Last reply Reply Quote 0
        • A
          amn
          last edited by

          Solved

          comment M5stack.h:

          //#include <M5Stack.h>
          #define M5STACK_MPU6886

          thx

          amn

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