ClosedCube_SHT31D_Arduino
ClosedCube_SHT31D_Arduino copied to clipboard
STM32 compatibility
When compiling this library against any STM32 it fails: src\ClosedCube_SHT31D.cpp:416:8: error: 'class TwoWire' has no member named 'readBytes' Wire.readBytes(buf, (uint8_t)2);
The problem is that, for the STM32, the Wire class is not inherited from Stream class, so it has no readBytes method.
Consider replacing the readBytes to read 2 bytes to be able to make this library compatible with STM32.