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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login