diff --git a/src/Dimmer.cpp b/src/Dimmer.cpp index 27540d0..54f00d7 100644 --- a/src/Dimmer.cpp +++ b/src/Dimmer.cpp @@ -36,7 +36,7 @@ void callZeroCross(){ } void callTriac(){ -// Process ISR for all configured dimmer lights at about 20KHz + // Process ISR for all configured dimmer lights at about 20KHz for (uint8_t i = 0; i < dimmerCount; i++) { dimmmers[i]->triac(); } diff --git a/src/Dimmer.h b/src/Dimmer.h index 9ac7d0e..7ab5f00 100644 --- a/src/Dimmer.h +++ b/src/Dimmer.h @@ -67,7 +67,7 @@ class Dimmer * @param state initial state of the light. Possible states: ON or OFF. Default is OFF. * @see begin() */ - Dimmer(uint8_t triacPin, uint8_t mode = NORMAL_MODE, uint8_t resolution = 1, uint8_t value=50, bool state = OFF); + Dimmer(uint8_t triacPin, uint8_t mode = NORMAL_MODE, uint8_t resolution = 1, uint8_t value=50, bool state = ON); /** * Initializes the module.