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

    SHT3x utility problem

    Scheduled Pinned Locked Moved Arduino
    2 Posts 2 Posters 3.7k Views
    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.
    • H Offline
      hrsavla
      last edited by

      I am getting these error while trying to compile helloworld example for M5 paper.
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp: In member function 'uint8_t SHT3x::UpdateDataImpl()':
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:55:22: error: 'I2C_ERROR_OK' was not declared in this scope
      if (error != I2C_ERROR_OK)
      ^~~~~~~~~~~~
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:55:22: note: suggested alternative: 'SHT3x_ERROR_OK'
      if (error != I2C_ERROR_OK)
      ^~~~~~~~~~~~
      SHT3x_ERROR_OK
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:64:22: error: 'I2C_ERROR_OK' was not declared in this scope
      if (error != I2C_ERROR_OK)
      ^~~~~~~~~~~~
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:64:22: note: suggested alternative: 'SHT3x_ERROR_OK'
      if (error != I2C_ERROR_OK)
      ^~~~~~~~~~~~
      SHT3x_ERROR_OK
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp: In member function 'uint8_t SHT3x::SendMeasurementCommand()':
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:86:21: error: 'class TwoWire' has no member named 'lastError'
      return Wire.lastError();
      ^~~~~~~~~
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:90:21: error: 'class TwoWire' has no member named 'lastError'
      return Wire.lastError();
      ^~~~~~~~~
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp: In member function 'uint8_t SHT3x::ReceiveResult(uint8_t*)':
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:101:16: error: 'I2C_ERROR_TIMEOUT' was not declared in this scope
      return I2C_ERROR_TIMEOUT;
      ^~~~~~~~~~~~~~~~~
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:101:16: note: suggested alternative: 'ESP_ERR_TIMEOUT'
      return I2C_ERROR_TIMEOUT;
      ^~~~~~~~~~~~~~~~~
      ESP_ERR_TIMEOUT
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:103:12: error: 'I2C_ERROR_OK' was not declared in this scope
      return I2C_ERROR_OK;
      ^~~~~~~~~~~~
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\utility\SHT3x.cpp:103:12: note: suggested alternative: 'SHT3x_ERROR_OK'
      return I2C_ERROR_OK;
      ^~~~~~~~~~~~
      SHT3x_ERROR_OK
      Multiple libraries were found for "WiFiClient.h"
      Used: C:\Users\DELL\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\WiFi
      Not used: D:\arduino-1.8.18\libraries\WiFi
      Multiple libraries were found for "SD.h"
      Used: C:\Users\DELL\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\SD
      Not used: D:\arduino-1.8.18\libraries\SD
      exit status 1
      Error compiling for board M5Stack-Paper.

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by

        Hello @hrsavla

        there are multiple issues to fix this for compilation with Arduino framework 2.0.1.

        I've attempted to solve those issues here - try it at your own risk.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post