Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. hrsavla
    3. Posts
    H
    • Continue chat with hrsavla
    • Start new chat with hrsavla
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by hrsavla

    • SHT3x utility problem

      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.

      posted in Arduino
      H
      hrsavla
    • RE: Not able to compile helloworld for M5paper

      Hello @felmue
      Thanks for suggestion. It solved the problem.

      posted in Arduino
      H
      hrsavla
    • Not able to compile helloworld for M5paper

      I am not able to compile helloworld for M5paper after following (https://docs.m5stack.com/en/quick_start/m5paper/arduino). I am getting error as bellow. Kindly suggest solution.
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\M5EPD.cpp: In member function 'void M5EPD::begin(bool, bool, bool, bool, bool)':
      C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\M5EPD.cpp:67:36: error: call of overloaded 'begin(int, int, int)' is ambiguous
      Wire.begin(21, 22, (400000));
      ^
      In file included from C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\M5EPD.h:5,
      from C:\Users\DELL\OneDrive\Documents\Arduino\libraries\M5EPD\src\M5EPD.cpp:1:
      C:\Users\DELL\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:79:10: note: candidate: 'bool TwoWire::begin(int, int, uint32_t)'
      bool begin(int sda=-1, int scl=-1, uint32_t frequency=0); // returns true, if successful init of i2c bus
      ^~~~~
      C:\Users\DELL\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:80:10: note: candidate: 'bool TwoWire::begin(uint8_t, int, int, uint32_t)'
      bool begin(uint8_t slaveAddr, int sda=-1, int scl=-1, uint32_t frequency=0);
      ^~~~~
      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
      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
      exit status 1
      Error compiling for board M5Stack-Paper.

      posted in Arduino
      H
      hrsavla