Error Compiling OneWire.h with ESP32-C6 + 3.0.0-alpha3 esp32 Arduino Core
Posted: 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.
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.