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

Issue when using more than one Dimmer on ESP32 [fixed] #71

Open
frankiezafe opened this issue Jul 16, 2023 · 2 comments
Open

Issue when using more than one Dimmer on ESP32 [fixed] #71

frankiezafe opened this issue Jul 16, 2023 · 2 comments

Comments

@frankiezafe
Copy link

Due to the initialiation of timer at each "begin", it's impossible to use more than one dimmer at the time with an ESP32.
I fixed the code by simply checking a static bool when begin in called.

It should be an easy fix, just copy/paste this cpp into src/esp32/ folder, recompile and done.

RBDmcuESP32.cpp.zip

All the best, thanks for the plugin, it's great!

@frankiezafe frankiezafe changed the title Issue when using more than one Dimmer on ESP32 Issue when using more than one Dimmer on ESP32 [fixed] Jul 16, 2023
@cesincem
Copy link

cesincem commented Sep 6, 2023

I am also working on multiple dimmers. But I couldn't find a solution. I would appreciate it if you could share a sample 2 channel code with me.

@hotswapster
Copy link

@frankiezafe can the same changes be made to ESP8266 code do you think?

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

3 participants