Compare commits
2 Commits
e23a21e25f
...
6b2f260153
Author | SHA1 | Date |
---|---|---|
Siwat Sirichai | 6b2f260153 | |
Siwat Sirichai | fcff8e0348 |
|
@ -500,7 +500,7 @@ void pwm_set_state(int id, int state)
|
||||||
int pwm_value = pwm_values[id];
|
int pwm_value = pwm_values[id];
|
||||||
ESPMega_analogWrite(pwm_pins[id], state * (int)(pwm_linear_scaling_m[id] * pwm_value + pwm_linear_scaling_c[id]));
|
ESPMega_analogWrite(pwm_pins[id], state * (int)(pwm_linear_scaling_m[id] * pwm_value + pwm_linear_scaling_c[id]));
|
||||||
if (lcd_current_page == 3)
|
if (lcd_current_page == 3)
|
||||||
panel.writeNum("j" + String(id) + ".pco", state ? 47829 : 12710);
|
panel.writeNum("j" + String(id) + ".ppic", pwm_states[id] ? 33 : 48);
|
||||||
else if (lcd_current_page == 5 && id == lcd_pwmAdj_id)
|
else if (lcd_current_page == 5 && id == lcd_pwmAdj_id)
|
||||||
panel.writeStr("pwm_state.txt", pwm_states[lcd_pwmAdj_id] ? "ON" : "OFF");
|
panel.writeStr("pwm_state.txt", pwm_states[lcd_pwmAdj_id] ? "ON" : "OFF");
|
||||||
publish_pwm_state(id);
|
publish_pwm_state(id);
|
||||||
|
|
Loading…
Reference in New Issue