Ds18b20 and OneWire protocol error

Hello I’ve using temperature sensor several times in the recent past with other boards with no problems but now I can not make it work on xiao esp32c6.

On compilation i get this:

c:\Users\david.atauri\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:174:25: error: no match for ‘operator>>’ (operand types are ‘volatile gpio_in_reg_t’ and ‘uint32_t’ {aka ‘long unsigned int’})
174 | return (GPIO.in >> pin) & 0x1;
| ~~~~~~~ ^~ ~~~
| | |
| | uint32_t {aka long unsigned int}
| volatile gpio_in_reg_t

I have tried diferent versions and I can avoid the error but no readings (device is not found)

Any clue??
Thanks

Tested with old esp32 wroom and it works
:-?

Hi there,
Well without seeing the code in question, I would try using the GPIO pin numbers instead of the logical numbers. I would try that.
If not then perhaps post the code using the code tags above “</>” and paste it in there.
HTH
GL :slight_smile: PJ :v:

I am finally using the library OnewireNG instead of OneWire. That one works with no problems