RBD Dimmer lib

Hi, i try to use rbddimmer lib on my esp8266, when i setup anything its all ok but i dont know why when i do dimmer.begin the watchdog loop restart ? Anyone can help me plz ?
const int zeroCrossPin = 4; // D2
const int triacPin = 5; // D1

dimmerLamp dimmer(triacPin,zeroCrossPin);
void setup() {
Serial.begin(115200);
Serial.println("Dimmer");

dimmer.begin(NORMAL_MODE, ON);
dimmer.setPower(50);
}
const int zeroCrossPin = 4; // D2
const int triacPin = 5; // D1

dimmerLamp dimmer(triacPin,zeroCrossPin);
void setup() {
Serial.begin(115200);
Serial.println("Dimmer");

dimmer.begin(NORMAL_MODE, ON);
dimmer.setPower(50);
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?