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.
227 stars 104 forks source link

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

Open frankiezafe opened 11 months ago

frankiezafe commented 11 months 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 10 months 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 1 month ago

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