You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\stiam\AppData\Local\Temp\.arduinoIDE-unsaved2024726-13276-1kakfg3.42te\exampleUsage\exampleUsage.ino: In function 'void setup()':
C:\Users\stiam\AppData\Local\Temp\.arduinoIDE-unsaved2024726-13276-1kakfg3.42te\exampleUsage\exampleUsage.ino:59:16: error: no matching function for call to 'SensirionI2cSht4x::begin(TwoWire&)'
59 | sht4x.begin(Wire);
| ~~~~~~~~~~~^~~~~~
In file included from C:\Users\stiam\AppData\Local\Temp\.arduinoIDE-unsaved2024726-13276-1kakfg3.42te\exampleUsage\exampleUsage.ino:37:
c:\Users\stiam\Documents\Arduino\libraries\Sensirion_I2c_SHT4x\src/SensirionI2cSht4x.h:74:10: note: candidate: 'void SensirionI2cSht4x::begin(TwoWire&, uint8_t)'
74 | void begin(TwoWire& i2cBus, uint8_t i2cAddress);
| ^~~~~
c:\Users\stiam\Documents\Arduino\libraries\Sensirion_I2c_SHT4x\src/SensirionI2cSht4x.h:74:10: note: candidate expects 2 arguments, 1 provided
exit status 1
Compilation error: no matching function for call to 'SensirionI2cSht4x::begin(TwoWire&)'
The text was updated successfully, but these errors were encountered:
Thanks for the report.
The latest update of the Arduino SHT4x library requires to also supply the I2C address to support all version of the SHT4x sensor.
You can compile the example by changing the line to
sht4x.begin(Wire, SHT40_I2C_ADDR_44);
We will update the examples within the next days to support the latest version of the SHT4x drivers.
Hi
Error while compiling exampleUsage.ino
The text was updated successfully, but these errors were encountered: