Open mitra42 opened 6 hours ago
@mitra42 This sounds like a bug I had in a few other libraries too, good you found it The cause is that the Arduino interface differs slightly over platforms.
Will create a develop branch asap with a fix. Give me half an hour. Can you do a verification with HW as I have no Lolin nearby.
If you patch the example sketch
I'm using the esp32->Lolin Wemos D1 Mini,
I do not have that one in my boards set, need to install it (takes some extra time).
Created a develop branch with a minimal patch. Build-CI has started, If you have time please try this develop branch.
@mitra42
/Users/mitra/Documents/Arduino/libraries/SHT85/SHT85.h:184:18: ... 184 | SHT85(TwoWire *wire = &Wire);
Which version of the library did you test with?
As my constructor definition in SHT85.h (0.6.0) does not have that version.
(Looks like 0.5.x version or earlier)
From 0.6.0 SHT85.h
class SHT85 : public SHT
{
public:
SHT85(uint8_t address, TwoWire *wire = &Wire);
// catch incorrect calls with an address, only 0x44 allowed, see #19
bool begin();
// EXPERIMENTAL for 0.4.1
uint32_t GetSerialNumber();
};
@mitra42 BUild-CI was successfull - https://github.com/RobTillaart/SHT85/actions/runs/10960803780
Ran for these platforms - uno, m4, esp32, esp8266, rpipico
So please download the develop branch and check if the fixes work for you.
None of the demos that I tried managed to compile e.g. examples/SHT85_demo_plotter/SHT85_demo_plotter.ino
I'm using the esp32->Lolin Wemos D1 Mini, - if I set to Arduino Uno it compiles
I tried various permutations of including Wire.h and attempting to include code from the SHT31_SW library, but nothing I tried worked.
Note ... you don't need a board to repeat this - simply setting the board type makes it fail to compile
Note that the SHT31_SW library demos fail to compile on either Arduino Uno or Lolin Wemos D1 Mini see https://github.com/RobTillaart/SHT31_SW/issues/14
I'll do some research and see if I can figure out what is going on, but since I haven't used I2C (or TwoWire or Softwire) I'm not sure where to start.