Page 1 of 1

Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core

Posted: Mon Mar 04, 2024 9:45 am
by Johnny230
OneWire.h Arduino Library is not compiling using the latest 3.0.0-alpha3 esp32 Arduino Core, however it compiles for v2.0.14. I am using the ESP32-C6 and therefore I have to use the unstable release inorder to compile for the ESP32-C6. The Arduino compiler gives the following error:

In file included from ~/Documents/Arduino/libraries/OneWire/OneWire.cpp:144:
~/Documents/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h: In function 'uint32_t directRead(uint32_t)':
~/Documents/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h:134:17: error: 'GPIO' was not declared in this scope; did you mean 'PI'?
134 | return (GPIO.in >> pin) & 0x1;

The GPIO object is no longer declared in the latest 3.0.0-alpha3 esp32 Arduino Core.

Any help or guidance would be greatly appreciated.

Re: Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core

Posted: Tue Mar 05, 2024 3:02 am
by lbernstone

Re: Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core

Posted: Thu Mar 07, 2024 9:15 pm
by tominiowa
Thanks for suggestion to the link. https://github.com/arendst/Tasmota/tree ... Wire-2.3.3

It worked for me. DS18B20 sensors on ESP32-C6

Re: Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core

Posted: Fri Mar 08, 2024 6:46 pm
by lbernstone
I would expect the UncleRus drivers will work too, although I need to update my port