From cea4da4c8c598b68fa615deab386b0283bf6738d Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 4 Oct 2023 02:28:09 +0700 Subject: [PATCH] adjust lcd function for new HMI --- src/espmega_iot_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index 482d123..bdb2d77 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -804,7 +804,7 @@ void lcd_refresh() for (int i = 0; i <= 15; i++) { panel.writeNum("j" + String(i) + ".val", int(pwm_values[i] / 4095.0 * 100.0)); - panel.writeNum("j" + String(i) + ".pco", pwm_states[i] ? 47829 : 12710); + panel.writeNum("j" + String(i) + ".ppic", pwm_states[i] ? 33 : 48); } break; case 4: