Hi,
I cannot compile the demo software using either Arduino (latest version) or in platform io.
I get the same error in both packages:
Help!!!
Here is the output from platformio:
Compiling .pio\build\featheresp32\FrameworkArduino\esp32-hal-misc.c.o
.pio\libdeps\featheresp32\Grove barometer HP20x_ID4930\HP20x_dev.cpp: In constructor ‘HP20x_dev::HP20x_dev()’:
.pio\libdeps\featheresp32\Grove barometer HP20x_ID4930\HP20x_dev.cpp:33:22: error: no matching function for call to ‘TwoWire::TwoWire()’
HP20x_dev::HP20x_dev()
^
In file included from .pio\libdeps\featheresp32\Grove barometer HP20x_ID4930\HP20x_dev.h:14:0,
from .pio\libdeps\featheresp32\Grove barometer HP20x_ID4930\HP20x_dev.cpp:13:
C:\Users\nick.platformio\packages\framework-arduinoespressif32\libraries\Wire\src/Wire.h:68:5: note: candidate: TwoWire::TwoWire(uint8_t)
TwoWire(uint8_t bus_num);
^
C:\Users\nick.platformio\packages\framework-arduinoespressif32\libraries\Wire\src/Wire.h:68:5: note: candidate expects 1 argument, 0 provided
C:\Users\nick.platformio\packages\framework-arduinoespressif32\libraries\Wire\src/Wire.h:38:7: note: candidate: constexpr TwoWire::TwoWire(const TwoWire&)
class TwoWire: public Stream
^
C:\Users\nick.platformio\packages\framework-arduinoespressif32\libraries\Wire\src/Wire.h:38:7: note: candidate expects 1 argument, 0 provided
.pio\libdeps\featheresp32\Grove barometer HP20x_ID4930\HP20x_dev.cpp: In member function ‘ulong HP20x_dev::ReadTemperature()’:
.pio\libdeps\featheresp32\Grove barometer HP20x_ID4930\HP20x_dev.cpp:74:11: warning: unused variable ‘Temp’ [-Wunused-variable]
uchar Temp;
^
.pio\libdeps\featheresp32\Grove barometer HP20x_ID4930\HP20x_dev.cpp:75:11: warning: unused variable ‘Temp0’ [-Wunused-variable]
uchar Temp0;
^
*** [.pio\build\featheresp32\lib524\Grove barometer HP20x_ID4930\HP20x_dev.cpp.o] Error 1
When I compile it for an Arduino uni in arduini ide, there are no errors. But I want to use an ESP32.
Help
What to do???
Nick
I got the sensor running in an Arduino Uno. It’s not wat I want, but I can have a look at the output.
Compared with my other barometers it is not accurate at all. It is 6 mBar lower than actual.
That is unacceptable for a device that supposed to have a high accuracy!
It is rubbish.
I’ll have to send it back and inform all readers not to bother with this device.
I’m very angry!