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

[Dallas] Fix Dallas 1Wire plugins on ESP32 #4164

Merged
merged 2 commits into from Jul 29, 2022

Conversation

TD-er
Copy link
Member

@TD-er TD-er commented Jul 28, 2022

Apparently the pinMode call on ESP SDK 2.0.3 and 2.0.4 now takes 16 usec to complete, compared to 4 msec before.

The OneWire library maintained by PaulStoffregen does perform direct GPIO handling on the registers instead of searching for the pins.
This is apparently working as reported here by @Jason2866

So I replaced all time critical calls for the Dallas plugins with the macros from Paul's library.

Apparently the `pinMode` call on ESP SDK 2.0.3 and 2.0.4 now takes 16 usec to complete, compared to 4 msec before.

The [OneWire library maintained by PaulStoffregen](https://github.com/PaulStoffregen/OneWire/blob/master/OneWire.cpp) does perform direct GPIO handling on the registers instead of searching for the pins.
This is apparently working as reported [here by @Jason2866](espressif/arduino-esp32#7049 (comment))

So I replaced all time critical calls for the Dallas plugins with the macros from Paul's library.
@TD-er
Copy link
Member Author

TD-er commented Jul 29, 2022

image
Tested on ESP32 and it is working again :)

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

Successfully merging this pull request may close these issues.

None yet

1 participant