fabianoriccardi / dimmable-light

Arduino library to manage dimmers compatible with AVR, ESP8266, ESP32, SAMD, and RP2040 platforms.
GNU Lesser General Public License v2.1
97 stars 29 forks source link

Crash esp32 PlatfotmIO #30

Closed dancheeek92 closed 1 year ago

dancheeek92 commented 2 years ago

Hello, thanks for the quality work! The problem is that at the moment the library does not work in PlatformIO, interrupt zc (pin 13) causes a crash. This issue has been asked before, but still no solution. You will do a great good deed if you deal with this problem. Your library is the only one that can provide an acceptable level of flicker.

D1ver commented 2 years ago

@fabianoriccardi Can you help to us? In other issue you wrote, that problem is in new arduino core. May be you can update a library?

fabianoriccardi commented 2 years ago

Hi, I will try to revamp the library to the newer version of Arduino cores and platformio.

@dancheeek92 Which board and Arduino Core version are you using?

dancheeek92 commented 2 years ago

@fabianoriccardi esp32 wroom, PlatformIO Core 6.1.4 (2022-08-12). The problem was on previous versions as well.

fabianoriccardi commented 2 years ago

May you tell me the ESP32-Arduino core version?

interrupt zc (pin 13) causes a crash.

Is only pin 13 causing the crash or is it always crashing whatever the pin?

dancheeek92 commented 2 years ago

@fabianoriccardi framework-arduino-mbcwb >=2.1.1. I tried to connect pin 27, but it did not solve the problem.

fabianoriccardi commented 2 years ago

I haven't never heard about this board, and even if it based on ESP32, it seems the company has developed their own framework. Is it open source? Does it use the well-known ESP32-Arduino?

nsummy commented 2 years ago

@dancheeek92 According to this: https://www.briki.org/download/Pin_description_MBC-WB.pdf Pins 13 and 27 are reserved for the onboard samd21...

fabianoriccardi commented 1 year ago

Closing since this issue was addressed in #41. A new version will be released soon.