PWM modified to 8bit
This commit is contained in:
parent
2d635ba0c4
commit
c176603240
1 changed files with 9 additions and 4 deletions
|
@ -38,8 +38,8 @@ IPAddress dns(192, 168, 0, 1);
|
|||
// 10 bit PWM
|
||||
#define PWM_OFF 0 // 0V
|
||||
#define PWM_MIN 0 // 0V - minimum light amount (~1%)
|
||||
#define PWM_MAX 1023 // 24V - maximum light amount (100%)
|
||||
#define BRI_TO_PWM_FACTOR 4.012 // 24V-15V = 24V range
|
||||
#define PWM_MAX 255 // 24V - maximum light amount (100%)
|
||||
#define BRI_TO_PWM_FACTOR 1.0 // 24V-0V = 24V range
|
||||
|
||||
//********************************//
|
||||
|
||||
|
@ -570,6 +570,11 @@ void init_webserver()
|
|||
}
|
||||
|
||||
EEPROM.commit();
|
||||
|
||||
if (tc_enabled == TIMING_CONTROL_DISABLED)
|
||||
{
|
||||
process_lightdata(light, default_transitiontime);
|
||||
}
|
||||
} else {
|
||||
// light is off
|
||||
if (tc_enabled == TIMING_CONTROL_DISABLED)
|
||||
|
|
Loading…
Reference in a new issue