Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error: Incompatibility between "LoRaWan_APP.h" and <OneWire.h> Libraries #260

Open
gondrin opened this issue Oct 10, 2024 · 1 comment

Comments

@gondrin
Copy link

gondrin commented Oct 10, 2024

Through sketch reductions down to basics(below), the same compile errors occur when using "LoRaWan_APP.h" and OneWire under Arduino IDE 2.3.3 and the latest Heltec/Expressif hardware libraries.

Module - Heltec Wireless Stick Lite.
SKETCH:
#include "LoRaWan_APP.h"
#include <OneWire.h>
void setup() { // put your setup code here, to run once: }
void loop() { // put your main code here, to run repeatedly: }

ERROR:
In file included from C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal.h:75, from C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/Arduino.h:36, from c:\Users\XXX\Documents\Arduino\libraries\OneWire\OneWire.cpp:147:
c:\Users\XXX\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function 'void directModeInput(uint32_t)':
C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/esp32-hal-gpio.h:68:34: error: 'GPIO_IS_VALID_GPIO' was not declared in this scope; did you mean 'RTC_GPIO_IS_VALID_GPIO'?
68 | #define digitalPinIsValid(pin) GPIO_IS_VALID_GPIO(pin)
| ^~~~~~~~~~~~~~~~~~
c:\Users\XXX\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:214:10: note: in expansion of macro 'digitalPinIsValid'
214 | if ( digitalPinIsValid(pin) )

@JuliaSteiwer
Copy link

I have a similar problem, could you already find a way to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants