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