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.
237 stars 112 forks source link

i have i problem i need help #77

Open ZAKARIACL opened 5 months ago

ZAKARIACL commented 5 months ago

In file included from c:\Users\PC\Documents\Arduino\libraries\RBDdimmer\src/RBDdimmer.h:9, from C:\Users\PC\Desktop\sketch_jun8a\sketch_jun8a.ino:1: c:\Users\PC\Documents\Arduino\libraries\RBDdimmer\src/esp32/RBDmcuESP32.h:10:10: fatal error: esp_intr.h: No such file or directory 10 | #include "esp_intr.h" | ^~~~ compilation terminated. exit status 1

Compilation error: exit status 1

zetazetterberg commented 4 months ago

replaced with esp_intr_alloc.h.

Arulamir commented 3 months ago

replaced with esp_intr_alloc.h.

after i change it the error going to file RBDmcuESP32.cpp C:\Users\TOSHIBA\Documents\Arduino\libraries\RBDdimmer\src\esp32\RBDmcuESP32.cpp: In member function 'void dimmerLamp::timer_init()': C:\Users\TOSHIBA\Documents\Arduino\libraries\RBDdimmer\src\esp32\RBDmcuESP32.cpp:53:27: error: too many arguments to function 'hw_timer_t timerBegin(uint32_t)' 53 | timer = timerBegin(0, 250, true); | ~~^~~~~~ In file included from C:\Users\TOSHIBA\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal.h:84, from C:\Users\TOSHIBA\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/Arduino.h:36, from C:\Users\TOSHIBA\Documents\Arduino\libraries\RBDdimmer\src\esp32\RBDmcuESP32.h:4, from C:\Users\TOSHIBA\Documents\Arduino\libraries\RBDdimmer\src\esp32\RBDmcuESP32.cpp:3: C:\Users\TOSHIBA\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:35:13: note: declared here 35 | hw_timer_t timerBegin(uint32_t frequency); | ^~~~~~ C:\Users\TOSHIBA\Documents\Arduino\libraries\RBDdimmer\src\esp32\RBDmcuESP32.cpp:55:29: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t, void ()())' 55 | timerAttachInterrupt(timer, &onTimerISR, true); | ~~~~^~~~~~ C:\Users\TOSHIBA\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here 50 | void timerAttachInterrupt(hw_timer_t timer, void (userFunc)(void)); | ^~~~~~~~ C:\Users\TOSHIBA\Documents\Arduino\libraries\RBDdimmer\src\esp32\RBDmcuESP32.cpp:58:9: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'? 58 | timerAlarmWrite(timer, 30, true); | ^~~~~~~ | timerWrite C:\Users\TOSHIBA\Documents\Arduino\libraries\RBDdimmer\src\esp32\RBDmcuESP32.cpp:60:9: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'? 60 | timerAlarmEnable(timer); | ^~~~ | timerAlarm

beubeu84 commented 2 weeks ago

I'm exactly in the same case