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

Fix plugins for ESP32 calling pinMode often #4165

Open
3 of 9 tasks
TD-er opened this issue Jul 29, 2022 · 2 comments
Open
3 of 9 tasks

Fix plugins for ESP32 calling pinMode often #4165

TD-er opened this issue Jul 29, 2022 · 2 comments
Labels
Category: Plugin Related to supported sensors Category: Stabiliy Things that work, but not as long as desired Platform: ESP32-S2 ESP32-S2 Specific Platform: ESP32 ESP32 classic and ESP32-xx based devices

Comments

@TD-er
Copy link
Member

TD-er commented Jul 29, 2022

The Dallas plugins were reported to no longer work since ESP32 SDK 2.0.3. (see: #4164 )
Apparently the time needed to switch pin mode now takes 16 usec instead of 4 usec it was before.

Since the 1Wire protocol needs to toggle quite often between input and output mode on the same GPIO, this really makes a difference.

There are probably more plugins suffering from the same issues.

Plugins to test/check:

Fixes: #4026
Fixes: #2745

@TD-er TD-er added Category: Plugin Related to supported sensors Platform: ESP32 ESP32 classic and ESP32-xx based devices Category: Stabiliy Things that work, but not as long as desired Platform: ESP32-S2 ESP32-S2 Specific labels Jul 29, 2022
@tonhuisman
Copy link
Contributor

tonhuisman commented Jul 29, 2022

Tested 7DGT (P073) on an ESP32s2 and that is working as intended 👍, without fixes or patches applied.

@tonhuisman
Copy link
Contributor

Tested ST77xx with a ST7789 320x240 display using an ESP32, and that's also working as expected.

I guess the display-related devices aren't very timing-critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Plugin Related to supported sensors Category: Stabiliy Things that work, but not as long as desired Platform: ESP32-S2 ESP32-S2 Specific Platform: ESP32 ESP32 classic and ESP32-xx based devices
Projects
None yet
Development

No branches or pull requests

2 participants