-
Notifications
You must be signed in to change notification settings - Fork 391
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
Arduino-ESP32 developers changed API (GPIO now using ESP-IDF API on all chips.) #108
Comments
Or switch to OneWireNg |
@uzi18 It can be good idea, but project (https://github.com/fredlcore/BSB-LAN) right now work on some platforms: Mega, Due, ESP32. OneWireNg not tested yet with Due (SAM). |
Ok, thank you! |
PR #114 |
I've merged #114. For everyone following this issue and still using ESP32, please download the latest OneWire and reply here to confirm (or deny) this fully solves the problem. I am waiting for your feedback before publishing a new OneWire version which will make this fix available to everyone using the Arduino Library Manager. Please take a moment to test this latest code and let me know if it should be published as a release to the wider Arduino community? |
Hi Paul I downloaded and used OneWire 114 to replace existing library as I have recently started to have compile issues with my projects. These projects have been around for a few years now so are well established. The compile issues concern esp32 and OneWire (as stated, fine for a few years but now broken with recent core esp32 changes). I am using I am still unable to compile clean using esp32 core 2.0.3 (ESP32 Dev) and OneWire 114 as listed below, same issue I have found threads related to recent issues about ESP32 and OneWire. A number of my projects use OneWire and ESP32 but no longer compile now, I only know that the code will no longer compile. (I can confirm that replacing OneWire with the OneWire-Stickbreaker compiles clean and runs.) The code did not have an issue before the latest round of updates for the ESP32 Core.
but I include that purely for reference as this code is unchanged from earlier versions of my code. Error Messages from Arduino Compiler
regards |
First quit Arduino. Try deleting all copies of OneWire. Then restart Arduino use Arduino's library manager to install version 2.3.7. Does that make any difference? |
Do all of the examples provided with OneWire compile without error? Is the error only when compiling with your program? |
Hi Paul
Thank you for the speedy response.
I can confirm that the solution you outlined has resolved this issue for me. Thank you.
(ie, delete library, re-install from Library Manager)
Regards
Robert On Monday, June 13, 2022, 06:59:44 PM GMT+12, Paul Stoffregen ***@***.***> wrote:
First quit Arduino. Try deleting all copies of OneWire. Then restart Arduino use Arduino's library manager to install version 2.3.7. Does that make any difference?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Back again. I followed again, the previous advice above, deleted all OnWire library, etc, updated to Library 2.3.7 using Library Manager in Arduino IDE, but the errors still remain. `Compiling library "OneWire" D:\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function 'uint8_t OneWire::reset()': If you have any suggestions I would appreciate that, and again, am happy to do any testing as I mostly now use esp32. On a side note, I changed the target CPU to Arduino Nano and get compiler warnings when compiling the DS18x example. regards |
Don't use -Werror |
Hi Paul |
@dukess they are compatible just change it and try |
@uzi18 thanks, we use OneWireNg since March. :) |
This will cause compile error with fresh versions of the SDK.
Diff:
espressif/arduino-esp32@c7cc5c9
The text was updated successfully, but these errors were encountered: