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.
Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core
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
It worked for me. DS18B20 sensors on ESP32-C6
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core
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 40 guests