M5Stamp C3U × /OneWire.h error. Has anyone run into the same error?
-
I included the Onewire.h library to use the DS18B20 temperature sensor in C3U, but I get the following error message "Error compiling for board STAMP-C3.
C:\Users******\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:131:25: error: no match for 'operator>>' (operand types are 'volatile gpio_dev_s::<unnamed union>' and 'uint32_t' {aka 'long unsigned int'})
return (GPIO.in >> pin) & 0x1;When the same code was compiled into M5Stack Basic, the compilation was able to run without error.
Does anyone know the solution?