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

Johnny230
Posts: 1
Joined: Mon Mar 04, 2024 9:34 am

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

Postby Johnny230 » Mon Mar 04, 2024 9:45 am

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.


tominiowa
Posts: 1
Joined: Thu Mar 07, 2024 8:33 pm

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

Postby tominiowa » Thu Mar 07, 2024 9:15 pm

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

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

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

Postby lbernstone » Fri Mar 08, 2024 6:46 pm

I would expect the UncleRus drivers will work too, although I need to update my port

Who is online

Users browsing this forum: No registered users and 108 guests