RobotDynOfficial / RBDDimmer

The following library is used for work with dimmer, it gives ability to control large ammoun of dimmer. This lib uses with Leonardo, Mega, UNO, ESP8266, ESP32, Arduino M0, Arduino Zero, Arduino Due, STM32.
241 stars 112 forks source link

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

Open frankiezafe opened 1 year ago

frankiezafe commented 1 year ago

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!

cesincem commented 1 year ago

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 commented 5 months ago

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